1
vote
2answers
2k views

HowTo: Add Class to Sidebar Widget List-Items

The newest version of Bootstrap (v3.0) adds a new List Group component which has the following structure: <ul class="list-group"> <li class="list-group-item">Cras justo odio</li> ...
0
votes
1answer
57 views

How to create multiple sidebar areas with a forloop and register_sidebars?

Im trying to create like, 8 sidebar areas using an array of page templates (like date, archive, tag ect) and then looping through the array, creating a sidebar for each value. I thought this should ...
3
votes
1answer
561 views

Registering Sidebars and Sidebar Widgets. Sidebar Widgets Not Displaying

I am registering sidebars and sidebar widgets. The theme currently supports two sidebars. Primary and Secondary. add_action('widgets_init', array($this, 'add_sidebars'), 10, 2); public function ...
2
votes
1answer
808 views

register_sidebar ignores 'id' and 'class'

I am using the following to register a widget area: if ( function_exists('register_sidebar') ) register_sidebar( array( 'name' => __( 'Footer Widgets', 'hex'), 'id' => ...
2
votes
1answer
534 views

Best practices: Custom theme sidebar menu - hardcode or widget?

Is it best to hardcode a sidebar menu using functions.php or sidebar.php OR use the custom menu widget? Are there times when each is appropriate?
2
votes
2answers
2k views

How to wrap the widget content with a div or get the widget title outside?

Is there a way to get the widget title outside of the widget area like this: <ul> <li> <h2 class="widgettitle">The title here</h2> <div class=""widget> ...
0
votes
1answer
954 views

Register sidebar 'before' and 'after' html as div rather than li tags

I am making sidebars for my theme using the register sidebar function. The codex does it something like this if ( function_exists('register_sidebar') ) register_sidebar(array( 'name' => 'Right ...
1
vote
2answers
1k views

how do I get a sidebar's id or number for use with is_active_sidebar()

From the codex is_active_sidebar( $index ); ?> Parameters $index (mixed) (required) Sidebar name, id or number. When i try any of my sidebar names it doesnt work; yet when I put in random ...
0
votes
1answer
567 views

Add SideBar/Widgets Just Below the Post

I have created and registered side bar in function.php and using it another place. It's working fine. Now I like to use it just below the post. I have installed some plugins -Bookmarks, related ...