Thread: Tabbed Widget
View Single Post
  #1 (permalink)  
Old 08-17-2008, 08:31 PM
Raymond Raymond is offline
Member
 
Join Date: Aug 2008
Posts: 68
Default Tabbed Widget

I installed the Tabbed Widget Plugin. It installed fine and I was able to use it, but it did not display properly. The tabs were all open. I read other people having the same problem and someone posted a "fix".

-----------------------------------------------------
How to Fix Your WordPress Theme

First, find the place where your theme defines sidebar widgets. This is usually done in functions.php file in theme’s folder but it may differ. If you can’t find it, simply go through all the theme files and search for register_sidebar.

Find the line that defines the HTML element box in which all the widgets are placed. It should look something like this:

'before_widget' => '<div ... >',
'after_widget' => '</div>',

If it contains %1$s and %2$s then you should consider donating to the author of the theme for the great job. However, if they are not present, then replace it with

'before_widget' => '<div id="%1$s" class="%2$s">',
'after_widget' => '</div>',

and WordPress will automaticaly replace %1$s with a unique identifier (name) and %2$s with a classname (surname) of each widget.
Anything Else?

Yes, if you find that %1$s and %2$s are missing, please contact the author of the theme with a link to this article. Thank you.

-----------------------------------------------------

I went ahead and changed the line as noted and received an error. Than went back and changed it a little bit differently, and this time it worked but it made the font of the widgets in that sidebar all big. Is there a "proper" way to I can make the adjustments to get this to work right?

Thanks to any replies.