• Resolved davidthain

    (@davidthain)


    TO ADD A LEFT SIDE SIDEBAR INTO TWENTY THIRTEEN I GUESS I JUST PUT ‘sidebar-3’ INTO THE CODE BELOW:

    if ( is_active_sidebar( 'sidebar-2' ) && ! is_attachment() && ! is_404() )
    		$classes[] = 'sidebar';

    THEN ADD A THIRD SECTION TO THE CODE BELOW

    function twentythirteen_widgets_init() {
    	register_sidebar( array(
    		'name'          => __( 'Main Widget Area', 'twentythirteen' ),
    		'id'            => 'sidebar-1',
    		'description'   => __( 'Appears in the footer section of the site.', 'twentythirteen' ),
    		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
    		'after_widget'  => '</aside>',
    		'before_title'  => '<h3 class="widget-title">',
    		'after_title'   => '</h3>',
    	) );
    
    	register_sidebar( array(
    		'name'          => __( 'Secondary Widget Area', 'twentythirteen' ),
    		'id'            => 'sidebar-2',
    		'description'   => __( 'Appears on posts and pages in the sidebar.', 'twentythirteen' ),
    		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
    		'after_widget'  => '</aside>',
    		'before_title'  => '<h3 class="widget-title">',
    		'after_title'   => '</h3>',
    	) );

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    AND THEN ADD A sidebar2.php

    HAVE I GOT THE RIGHT IDEA

    Regards

    David

Viewing 15 replies - 1 through 15 (of 16 total)
Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Adding a second sidebar (on the left) of Twenty Thirteen’ is closed to new replies.