fr33think3r
Member
Posted 3 years ago #
The tabbed widgets plugin doesn't seem to be compatible with the structure theme I have (its not the latest - 1.2.1).
What I see is that instead of the content being displayed in tabs, its displayed one below the another. I tried using hte same plugin on a my local installation for the default wordpress theme and it works, but it doesn't work for the structure theme.
Is it because both are using jQuery, there's a conflict?
http://wordpress.org/extend/plugins/tabbed-widgets/
Thanks.
Hi there i'm using this too and i would think it's because the theme has it's own js which is causing the conflict. I tried it out with the wordpress default kubrick and it works fine.
fr33think3r
Member
Posted 3 years ago #
Hi Kaspar,
Is it the below bit that you were referring to that I should change in my theme?
Therefore, I suggest you edit the register_sidebar(...) portion of theme’s functions.php to include the following:
id="%1$s" and class="%2$s" inside the before_widget value, like this: 'before_widget' => '<div id="%1$s" class="%2$s widget or-any-other-class">'.
If you are using <div id=... for 'before_widget' then don’t forget to change 'after_widget' to 'after_widget' => '</div>'
This way WordPress will replace %1$s and %2$s with unique indentifiers for each of the widgets.
regards,
Pratik
Pratik, I was referring to my comment about the Options theme which might have the same location for register_sidebar thing as the Structure theme. Here is what it said:
open app/widgets.php (in options theme folder) and change:
'before_widget' => '<div class="menu">',
into this:
'before_widget' => '<div id="%1$s" class="menu %2$s">',
fr33think3r
Member
Posted 3 years ago #
Great! Works now :) Thanks a ton .. Check it out at http://nsm.org.in/ :)
fr33think3r, could you please mark this topic as solved.