• I edit a new page,here is the content.

    View post on imgur.com

    Publish and view it.

    View post on imgur.com

    Why nothing display?
    The theme is twentyfourteen
    sudo cat /var/www/html/wp/wp-content/themes/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 a test</p>

    </div><!– #content –>
    </div><!– #primary –>
    <?php get_sidebar( ‘content’ ); ?>
    </div><!– #main-content –>
    <?php

    Why all the double quotation marks are ” instead of ” ,and single quotation mark is ‘ instead of ‘ ?

    1.How to display my page?
    2.The quotation marks are in right format?

    • This topic was modified 6 years, 10 months ago by elearn2014.
    • This topic was modified 6 years, 10 months ago by elearn2014.
Viewing 1 replies (of 1 total)
  • please try this code, if its still cause issue kindly change double and single quests manually.

    <?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 a test</p>

    </div><!– #content –>
    </div><!– #primary –>
    <?php get_sidebar( ‘content’ ); ?>
    </div><!– #main-content –>

Viewing 1 replies (of 1 total)
  • The topic ‘Why content in my page can’t display?’ is closed to new replies.