Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Why content in my page can’t display?

Discussion in 'Misc WordPress Requests' started by elearn2014, Jan 10, 2018.

  1. elearn2014


    Why content in my page can’t display?, by elearn2014

    I edit a new page,here is the content.


    Publish and view it.

    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 */ ?>

    * 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 –>

    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?

    Why content in my page can’t display?

Share This Page

Monarch Social Sharing Plugin