• I’m working on a theme based on Twenty Thirteen (not a child but it’s own theme).

    So I registered/added a new sidebar in the functions.php so that the ‘members’ area of the website could have it’s own unique info in the sidebar along with the standard sidebar. However it ends up in the bottom of the content area when there is not enough content in the main area.

    http://byd4.us/member-resources/member-benefits/

    I did the same exact thing here but when there is enough main area content the new sidebar (widgets) stays in the sidebar.

    http://byd4.us/about-trec-2/driven-trec/

    I’m pretty sure it’s a CSS issue but here is the code for the functions / page files:

    What I did in functions.php –

    register_sidebar( array(
    		'name'          => __( 'Sidebar Widgets One', '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>',
    	) );
    
    register_sidebar( array(
    		'name'          => __( 'Sidebar Member Resources', 'twentythirteen' ),
    		'id'            => 'sidebar-members',
    		'description'   => __( 'Appears on MEMBER RESOURCES pages', 'twentythirteen' ),
    		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
    		'after_widget'  => '</aside>',
    		'before_title'  => '<h3 class="member widget-title">',
    		'after_title'   => '</h3>',
    	) );

    What I put in the template page file to pull in the new widget –

    </div><!-- #content -->
    	</div><!-- #primary -->
    
    <?php get_sidebar('widgets-one'); ?>
    <?php get_sidebar('widgets-two'); ?>
    <?php get_sidebar('widgets-members'); ?>
    <div style="clear:both;"></div>
    <?php get_footer(); ?>
  • The topic ‘Twenty Thirteen theme – added / registered new sidebar, ends up in content area’ is closed to new replies.