Using Javascript to create nested tabs in Wordpress? -
side note: i've been designing in wordpress few months, , don't know else or how else ask this, language may seem inaccurate.
i'm using jupiter theme within wordpress create site, textbook. 1 of chapters has content i've created "tabs' element on visual composer front-end editor. however, content needs formatted each of 5 tabs, within each tab there nested tabs.
apparently function isn't allowed in visual composer(dragging tabs element within tabs element), created class names each tab , used javascript append tabs within corresponding tab. if assist , tell me why can't seem move other classes new tabs, appreciate it. tried putting tabs within accordion, , fails well.
this method works first occurrence of nested tab, others, same javascript fails work.
the page need assistance on: chapter 10
the javascript:
//these next few lines relate chapter 10 page $('.tabonecontent').appendto($(".tabone").parents(".mk-tabs-pane")); $('.tabtwocontent').appendto($(".tabtwo").parents(".mk-tabs-pane")); $('.tabthreecontent').appendto($(".tabthree").parents(".mk-tabs-pane")); $('.tabfourcontent').appendto($(".tabfour").parents(".mk-tabs-pane")); $('.tabfivecontent').appendto($(".tabfive").parents(".mk-tabs-pane"));
Comments
Post a Comment