Adding New Pages
Pages are static blocks of content that exist outside the blog chronology. Typically, pages are used for content that is infrequently updated, like an About page or a Contact page. When you update a page, the information isn’t added to your RSS feed (learn more about RSS and syndication in Chapter 7, “Syndication”).
Adding new pages is almost identical to adding blog posts; both use the same editing tools for content and function nearly identically, so if you’re familiar with one, you’ll be familiar with the other.
To add a new page:
- In the sidebar menu, choose Pages > Add New to open the Add New Page subpanel (Figure 4.50).
Figure 4.50 Add a new page by clicking Pages > Add New. If the editor looks familiar, that’s because it’s the same one used to edit posts!
- Give your page a title. After you type in the page title, a URL, or permalink, will appear below it. You can edit the permalink
by clicking the Change Permalinks button (Figure 4.51).
Figure 4.51 You can change the URL of your page by clicking Change Permalinks.
- Add some content to your page. You can format your content using the formatting toolbar at the top of the visual editor (Figure 4.52).
Figure 4.52 Add content just like you would in the post editor; the formatting is the same.
- For more fine-grained control, click the HTML tab to edit the markup of your page.
- To add media to your page, click one of the icons that appear after the words Upload/Insert at the top of the editor.
Learn more about managing media in Chapter 7.
- Click Publish when you are ready to post the page to your site. You will see “Page published” at the top of the screen (Figure 4.53).
Figure 4.53 You can view your newly published page by clicking the View Page link next to the Page Published announcement at the top of the screen.
Pages are usually used in navigation lists and can be hierarchical, with top-level, or parent, pages making up the main navigation links and subpages, or child pages, as subnavigation. Links are displayed differently depending on your theme; learn more about themes in Chapter 8.
To create subpages:
- Look in the attributes box on the right of the page editor to see the page hierarchy options. If the page you’re creating is an offshoot or secondary to another page, you can choose to make it a subpage.
- You will need an existing page to function as the parent page. Select a parent in the drop-down menu (Figure 4.54). Click Update Page to save your change.
Figure 4.54 Choose an existing page to function as a parent page.
To assign a parent from the page list:
- Click Pages in the sidebar menu to display the list of pages (Figure 4.55). This will open the Edit Pages section, where all your pages are listed.
Figure 4.55 Click the Pages link to open the Edit Pages section.
- Hover over the page you wish to modify and click Quick Edit to open the Quick Edit menu (Figure 4.56).
Figure 4.56 Use Quick Edit to make changes to a page’s hierarchical structure or page order.
- Select a parent from the Parent drop-down menu.
- Click Update Page to save your change.
Your theme can now make use of the page hierarchy you have created to show nested navigation (Figure 4.57).
Figure 4.57 Nested navigation on a WordPress blog.
To edit pages:
- Select Pages in the sidebar menu to open the list of pages (Figure 4.58).
Figure 4.58 A list of your pages.
- To edit the page’s metadata—publish date, author, or page order—hover the mouse over the page title and click Quick Edit to
open the Quick Edit menu (Figure 4.59).
Figure 4.59 If you don’t need to edit a page’s actual content, you can use the Quick Edit menu.
- If you need to edit the page content, click Edit.
The process of editing pages is nearly identical to editing blog posts (see “To edit the body of a post” earlier in this chapter for more information on post editing), with the exception of some advanced configuration options, such as page order (see the “How to Control Page Sort Order” sidebar for more information on page order).
- Once you have edited the page, click Update Page to save your changes (Figure 4.60). Your page has been edited.
Figure 4.60 Success! You’ve edited your page.