Tag Archives: parent

WordPress Tutorial – How to Make a "Child" Page (Subpage) and How to Hide Sidebar Widget Link

This beginner-level WordPress tutorial shows 1. How to make a “child” page or subpage of another page (a “parent” page) using the WordPress 2.7 editing interface. And 2. How to hide a link in the Pages sidebar widget, in other words, how to keep a link to a page from showing in the Pages sidebar widget by putting the page ID number into the “Exclude” box in the Pages sidebar widget dialog box. Making “child” pages (subpages) is useful because you may not want all your pages to show in the main page navigation of your WordPress theme. In most themes, only “main” pages (pages that don’t have a “parent”) show up in the main page navigation. In some newer WordPress themes, child pages show up in a popup menu that appears when you roll over the main page link. And in some themes, sub-subpages show up in popup menus as well. These are sometimes called “cascading” navigation menus: sub-subpages show up in a popup menu when you roll over a subpage link. The second part of this tutorial shows how to hide (or “exclude”) a link to a page that would otherwise appear in the links of the Pages sidebar widget. This is useful for a number of reasons. One is that when you make a static page your Home page in WordPress, some themes will show the link to this static page as a second home page link in your main navigation. By making the Home page a subpage and excluding that link from the Pages sidebar navigation, you can eliminate the double Home page link.