• Resolved YunShui

    (@yunshui)


    Hi,

    Im trying to add a seccond sidebar in Twenty eleven theme, so I went to functions.php and added this

    register_sidebar( array(
    		'name' => __( 'rightsidebar', 'twentyeleven' ),
    		'id' => 'sidebar-6',
    		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
    		'after_widget' => "</aside>",
    		'before_title' => '<h3 class="widget-title">',
    		'after_title' => '</h3>',
    	) );

    in this section
    function twentyeleven_widgets_init() {

    Now I can see the new sidebar in the widgets area, but I can’t figure how to add it in the index template.

    I’ve tryied to add this
    <?php get_sidebar(sidebar-6); ?>
    but it doesn’t display anything.

    Any idea?

    Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Adding a seccond sidebar in Twenty Eleven theme’ is closed to new replies.