Make WordPress Core


Ignore:
Timestamp:
10/29/2013 07:05:02 PM (12 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: allow any page to be set as the front page, removing requirement for front-page.php template file. Props iamtakashi, fixes #25685.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/full-width-page.php

    r25769 r25985  
    99
    1010get_header(); ?>
     11
     12<div id="main-content" class="main-content">
     13
     14<?php
     15    if ( is_front_page() && twentyfourteen_has_featured_posts() )
     16        get_template_part( 'featured-content' );
     17?>
    1118
    1219    <div id="primary" class="content-area">
     
    2532        </div><!-- #content -->
    2633    </div><!-- #primary -->
     34</div><!-- #main-content -->
    2735
    2836<?php
Note: See TracChangeset for help on using the changeset viewer.