Creating a different side bar for single posts than for main page.

I would consider the following … Register a new sidebar: function your_new_widget() { register_sidebar( array( ‘name’ => __( ‘Single View Sidebar’, ‘your_textdomain’ ), ‘id’ => ‘sidebar-single’, ‘description’ => __( ‘This widget area is found only on the single post view.’, ‘your_textdomain’ ), ) ); } add_action( ‘widgets_init’, ‘your_new_widget’ ); Create a new sidebar template: /** … Read more

Register/Get sidebar?

http://codex.wordpress.org/Function_Reference/get_sidebar <?php get_sidebar(‘other’); ?> for instance will call the template sidebar-other.php you would add the dynamic_sidebar() code in that sidebar-other.php template; see also http://codex.wordpress.org/Widgetizing_Themes

Toggle option in sidebar widgets

The after_title does not go through any transformations. In fact only the before_widget does: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/widgets.php#L876 However, a little lower you can see that $params = apply_filters( ‘dynamic_sidebar_params’, $params ); there’s a filter you can hook to do your own filtering. add_filter( ‘dynamic_sidebar_params’, ‘wpse_45418_change_after_title’ ); function wpse_45418_change_after_title( $params ) { $id = $params[0][‘widget_id’]; if ( $id … Read more

How do I override a sidebar that is registered in a parent theme when using a child theme?

Here is what worked: add_action( ‘after_setup_theme’, ‘parent_override’ ); function parent_override() { unregister_sidebar(‘sidebar-4’); /** I have looked for the ID of the sidebar by looking at * the source code in the admin.. and saw the widget’s id=”sidebar-4″ */ register_sidebar(array( ‘name’ => ‘Footer’, ‘before_widget’ => ‘<div class=”span3″>’, ‘after_widget’ => ‘</div>’, ‘before_title’ => ‘<h6 class=”footer-widgets-item”>’, ‘after_title’ => … Read more