Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Adding class to tabs in php Reply To: Adding class to tabs in php

#184668
burr
Participant

You are talking about the li children of the .tabs ul right?

Since by the looks that the tabs are generated by the ‘jigoshop’ plugin its probably not recommended to change any of the functions of that plugin because its possible that your changes get overwritten when you update the plugin.

In saying that you could look for the jigoshop_product_tabs function and manually add your classes into the loop.

If it were me I would probably target the li with a specific css instead. (If the only reason is for styling)

For example:

#product-tabs ul.tabs li  {

    /* styles */

}