Make WordPress Core


Ignore:
Timestamp:
09/25/2013 04:35:26 PM (12 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: make the content sidebar optional and alter the layout to full-width if the sidebar is not active, but without adding wider featured image (for now). Props iamtakashi, closes #25031.

File:
1 edited

Legend:

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

    r25519 r25624  
    471471        $classes[] = 'list-view';
    472472
    473     if ( is_page_template( 'full-width-page.php' ) || is_page_template( 'contributor-page.php' ) || is_attachment() )
     473    if ( ( ! is_front_page() && ! is_active_sidebar( 'sidebar-3' ) )
     474        || is_page_template( 'full-width-page.php' )
     475        || is_page_template( 'contributor-page.php' )
     476        || is_attachment() )
    474477        $classes[] = 'full-width';
    475478
Note: See TracChangeset for help on using the changeset viewer.