Sunday, February 12, 2012

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

February 13, 2010 by Erick  
Filed under Wordpress


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.

Comments

9 Responses to “WordPress Tutorial – How to Make a “Child” Page (Subpage) and How to Hide Sidebar Widget Link”
  1. Pallor says:

    Was curious if you know how to hide child pages from the main nav bar. A lot of themes display child pages and it makes for far too much clutter. I have tried snippets of code for css and php and none have been successful. I know its somewhat dependent on the theme itself but, any advice would be great.

  2. ironnickel says:

    Thanks for this, very useful.

  3. hiyasam says:

    in the php header code you change the depth value to depth=0. That should work

  4. TheWealthyPromoter says:

    Ok after over a week of debating over this program called SocialBlaster, I made my decision today purchase it and its been the next best decision I have made in a long time.

    Simple, plus very effective…traffic to my wordpress blog from over 40 + networks!
    NO MORE iMACROS bullchyt for me…THANK GOD!!

  5. meic01 says:

    this was exactly what was looking for to hide my child pages! thank you so much. such a life saver
    keep up the good work!

  6. dieterlee3 says:

    Outstanding Videos! I find your videos far more informative and useful than a WordPress membership site that was costing me $20 a month. Keep up the fantastic work!

  7. mcbuzzvideo says:

    @dieterlee3
    Many thanks for the kind words. It’s time to crank out some new tutorials! I’ve just been too busy. Let me know if there is a topic you would like to see covered. ;-)
    - Mark

  8. iozzonline says:

    in various templates, there is no way to make a subpage visible once created.

  9. therealdeal851 says:

    Great video!!! How do you hide the affiliate link from the side bar if you are using a advertising banner

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!