adsense

How to Create a New WordPress PHP Page





1. Navigate to the 'themes' directory on the webserver from the command line. For example, type:cd /var/www/myblog/wp-content/themes/mytheme
2. Copy the 'page.php' file to a file with a different name. For example, type:cp page.php newpage.php

3. Open a browser and navigate to the administrative section of the site. For example, change the browser location to:http://example.com/wp-admin
4. Sign in to WordPress as the administrative user by entering 'admin' for the username and the password you created for the 'admin' user.
5. Select 'Editor' under 'Appearance.' Click the 'newpage.php' file on the list of files in the right-hand panel. Change the header portion of the file and provide a template name for the page. For example, type:
6. Modify the page template as appropriate and click 'Update File' to save your changes.
7. Select 'Add New' under 'Pages.' Enter a title for the page. Select 'My New Page' from the 'Template' selection box in the 'Page Attributes' window on the right. Do not enter anything in the body of the page. Click 'Publish' to save and publish the new page.

Comments

0 Responses to "How to Create a New WordPress PHP Page"

Post a Comment

Popular Posts

About