Making WordPress.org

Changeset 5564


Ignore:
Timestamp:
06/14/2017 10:10:10 PM (9 years ago)
Author:
iandunn
Message:

CampSite 2017: Show day-of widgets on day-of template when is front page

Previously they would only show up when the page that the template is applied to was assigned to show up on the home page, but they should should up regardless.

Props Kau-Boy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/campsite-2017/sidebar-before-content.php

    r5536 r5564  
    1010namespace WordCamp\CampSite_2017;
    1111
    12 if ( is_front_page() ) {
     12if ( is_front_page() && ! is_page_template( 'templates/page-day-of.php' ) ) {
    1313    $has_active_homepage_sidebar = is_active_sidebar( 'before-content-homepage-1' ) || is_active_sidebar( 'before-content-homepage-2' ) || is_active_sidebar( 'before-content-homepage-3' ) || is_active_sidebar( 'before-content-homepage-4' ) || is_active_sidebar( 'before-content-homepage-5' );
    1414
Note: See TracChangeset for help on using the changeset viewer.