Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Kasper,

    Don’t know if you still require this, I have managed to found a way to add the ID to each tab.

    In the main php file (easy_res_tab.php) at line 220 you should see this line…

    $_ert_restabs[$index][‘tabs’][] = ‘<li class=”‘ . $active . ‘”>‘ . $title
    . ‘
    ‘;

    Change the li class from ‘ . $active . ‘ to ‘ . $pane_id . ‘ so like this…

    $_ert_restabs[$index][‘tabs’][] = ‘<li class=”‘. $pane_id . ‘ ‘ . $active . ‘”>‘ . $title
    . ‘
    ‘;

    Noticed I kept the original $active class too in case you want the first or active tab to appear different too or you can remove as the line above.

    With this you can then target your individual tabs using this css selector then place whatever you like in there. li.ert_pane1-0 is the first tab then li.ert_pane1-1, li.ert_pane1-2 and so on.

    .osc-res-tab ul.osc-tabs-center-ul li.ert_pane1-0 {

    styles…..

    }

    Hope this helps! ??

    Thread Starter Kasper Rubin

    (@kasper-rubin)

    Hello and thanks for your reply. About 5 months ago I tried the Visual Composer and found a solution to my problem.

    But it’s really nice that you decided to answer my old post. And it may just help me out on occations where said VC is not going to be around.

    Again, thank you ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add ID to tab’ is closed to new replies.