Make WordPress Core


Ignore:
Timestamp:
02/28/2013 09:35:26 PM (14 years ago)
Author:
lancewillett
Message:

Twenty Thirteen: make footer widget area the primary sidebar, acting as "secondary" content. Move optional sidebar widget area to "tertiary" content. Props obenland, fixes #23644.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentythirteen/functions.php

    r23523 r23539  
    170170
    171171        // Adds Masonry to handle vertical alignment of footer widgets.
    172         if ( is_active_sidebar( 'sidebar-2' ) )
     172        if ( is_active_sidebar( 'sidebar-1' ) )
    173173                wp_enqueue_script( 'jquery-masonry' );
    174174
    … …  
    226226function twentythirteen_widgets_init() {
    227227        register_sidebar( array(
    228                 'name'          => __( 'Sidebar', 'twentythirteen' ),
     228                'name'          => __( 'Main Widget Area', 'twentythirteen' ),
    229229                'id'            => 'sidebar-1',
    230                 'description'   => __( 'Appears on posts and pages', 'twentythirteen' ),
     230                'description'   => __( 'Appears in the footer section of the site', 'twentythirteen' ),
    231231                'before_widget' => '<aside id="%1$s" class="widget %2$s">',
    232232                'after_widget'  => '</aside>',
    … …  
    236236
    237237        register_sidebar( array(
    238                 'name'          => __( 'Footer Widget Area', 'twentythirteen' ),
     238                'name'          => __( 'Secondary Widget Area', 'twentythirteen' ),
    239239                'id'            => 'sidebar-2',
    240                 'description'   => __( 'Appears in the footer section of the site', 'twentythirteen' ),
     240                'description'   => __( 'Appears on posts and pages in the sidebar.', 'twentythirteen' ),
    241241                'before_widget' => '<aside id="%1$s" class="widget %2$s">',
    242242                'after_widget'  => '</aside>',
    … …  
    506506                $classes[] = 'single-author';
    507507
    508         if ( is_active_sidebar( 'sidebar-1' ) && ! is_attachment() && ! is_404() )
     508        if ( is_active_sidebar( 'sidebar-2' ) && ! is_attachment() && ! is_404() )
    509509                $classes[] = 'sidebar';
    510510
Note: See TracChangeset for help on using the changeset viewer.