Sidebar Width
-
Alright, first off let me explain what I’ve done so far. For my forums, I have created a forum-specific sidebar.
sidebar-bbpress
` div id=”sidebar”>?php
if (!function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘bbpress’)):
endif;
?>`
And registered the sidebar in my function.php
` register_sidebar(array(
‘id’ => ‘bbpress’,
‘name’ => ‘bbpress’,
‘before_widget’ => ‘div class=”widget”>’,
‘after_widget’ => ‘/div>’,
‘before_title’ => ‘h4>’,
‘after_title’ => ‘/h4>’,
));
`
And I pull it in my forum.php by:
`?php get_sidebar( ‘bbpress’ ); ?>`In my css I’m able to customize the forum’s #main by referencing “#main.forum”, so I can specify widths that will only affect the forum, etc.
Now for my issue, how the hell do I change sidebar information ONLY in forums? I’ve tried referencing #sidebar.forums, but it doesn’t classify the sidebar as a forum sidebar.
- You must be logged in to reply to this topic.