Home > CMS Tutorial > WordPress > How to edit page in wordpress

How to edit page in wordpress

爱喝马黛茶的安东尼
Release: 2019-07-27 15:25:57
Original
10218 people have browsed it

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.

How to edit page in wordpress

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

How to edit page in wordpress

. Move the mouse over the list to view the single page ID; if it is 5

How to edit page in wordpress

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

How to edit page in wordpress

#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 .&#39;/page-about.php&#39;);
Copy after login

?>: As shown in the figure, it means that if the ID is 7, then the template is page-about.php,

How to edit page in wordpress

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 */ ?>
Copy after login

How to edit page in wordpress

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.

How to edit page in wordpress

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template