Home > Article > CMS Tutorial > How to edit page in wordpress
Summary: Wordpress editing page steps: Step 1: Log in to the WordPress backend, click the "Page" menu on the left dashboard; Step 2: Select the page to edit, select it; Step 3: Select "Edit" or "Quick Edit" allows you to edit the page online.
The following are the specific graphic steps:
1. Edit the template online through the wordpress background
Log in In the WordPress backend, go to the left menu bar and create a new single page as about us
. Move the mouse over the list to view the single page ID; if it is 5
Related recommendations: "WordPress Tutorial"
2. Edit
to the template by downloading it to the local program In the directory, wp-content/themes/theme name, create a new page-about.php
#Find the page.php file under the template, and view it in step 2 as specified in the page The ID is used to determine template selection; the code is
<?php if ( is_page(7) ){ include(TEMPLATEPATH .'/page-about.php');
?>: As shown in the figure, it means that if the ID is 7, then the template is page-about.php,
At this time the about template is the page-about.php template and can be edited.
Specify the template in the background
Create a new template file as page-about.php. The template file path is under wp-content/themes/theme name/. At the end of the template Add a piece of code above
<?php /* Template Name:about */ ?>
Log in to the background to create a new about page. In the right sidebar, in the template drop-down menu, select the template name we just named about, select, and then confirm . Then the page-about.php file is the template of the about page at this time and can be customized.
The above is the detailed content of How to edit page in wordpress. For more information, please follow other related articles on the PHP Chinese website!