Jump to content


Replying to Adding Id To Tabs For Custom Heading Effects


Post Options

  or Cancel


Topic Summary

Ronald

Posted 22 January 2012 - 08:14 AM

good one, thanks for sharing!

Posted 20 January 2012 - 09:09 PM

I had a need to add some extra styles to the tab headings, so I added a numbered ID to each tab.

Here are the modified lines from widget.php:


77                     if ( true === $first ) {
78   ***                   $class = ' class="selected" id="tab' . $counter . '" ';
79
80                         $first = false;
81                     }
82                     else
83   ***                   $class = ' id="tab' . $counter . '" ';


*** -> added tab1,tab2 etc

Cheers,

-NSB

Review the complete topic (launches new window)