• Resolved elearn2014

    (@elearn2014)


    tree  twentyfourteen-child
    twentyfourteen-child
    ├── functions.php
    ├── page.php
    └── style.css
    sudo cat twentyfourteen-child/page.php  
    <?php /* Template Name: Custom Front Page */ ?>
    
    <?php
    /**
    * The template for displaying all pages
    *
    * This is the template that displays all pages by default.
    * Please note that this is the WordPress construct of pages and that
    * other ‘pages’ on your WordPress site will use a different template.
    *
    * @package WordPress
    * @subpackage Twenty_Fourteen
    * @since Twenty Fourteen 1.0
    */
    
    get_header(); ?>
    <div id=”main-content” class=”main-content”>
    <div id=”primary” class=”content-area”>
    <div id=”content” class=”site-content” role=”main”>
    <p>it is my first home page</p>
    
    </div><!– #content –>
    </div><!– #primary –>
    <?php get_sidebar( ‘content’ ); ?>
    </div><!– #main-content –>
    <?php
    get_sidebar();
    get_footer();

    To create a new page and select template Custom Front Page.
    To open my home page,blank in div#primary,why there is no string it is my first home page?
    I have written it is my first home page into twentyfourteen-child/page.php.

    • This topic was modified 7 years, 6 months ago by elearn2014.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘fail to customize my home page.’ is closed to new replies.