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/sidebar.php

    r23452 r23539  
    11<?php
    22/**
    3  * The sidebar containing the main widget area.
     3 * The sidebar containing the secondary widget area, displays on posts and pages.
    44 *
    55 * If no active widgets in this sidebar, it will be hidden completely.
    … …  
    1010 */
    1111
    12 if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
    13         <div id="secondary" class="sidebar-container" role="complementary">
     12if ( is_active_sidebar( 'sidebar-2' ) ) : ?>
     13        <div id="tertiary" class="sidebar-container" role="complementary">
    1414                <div class="sidebar-inner">
    1515                        <div class="widget-area">
    16                                 <?php dynamic_sidebar( 'sidebar-1' ); ?>
     16                                <?php dynamic_sidebar( 'sidebar-2' ); ?>
    1717                        </div>
    1818                </div>
    19         </div><!-- #secondary -->
     19        </div><!-- #tertiary -->
    2020<?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.