Forums

Hiding child pages from the sidebar navigation (6 posts)

  1. cfaria
    Member
    Posted 4 months ago #

    Hi there,

    Does anyone know how I can hide the child pages from the navigation on the left hand side: http://www.ben4ben.org.uk/

    Many thanks,

    Cassandra

  2. reborrell
    Member
    Posted 4 months ago #

    Cassandra,
    I don't have an answer to your question, but I could use your help.

    I viewed your webpage and love it. I'm trying to do exactly what you've done at the top with expanding the usual number of photos from 7 to 11.

    My code appears to be set up the same way yours is; however it's not working.

    Can you go to http://www.BestFriendsPhotoBlog.com and check it out. I believe everything is listed in the header.php properly (I even changed the open width to 280).

    Perhaps my problem is with my style.css or my image.Menu

    I really would appreciate any help you or anyone else could offer.

    Reb Orrell
    Reb@RebsWebDesign.com

  3. cfaria
    Member
    Posted 3 months ago #

    Hi Reb,

    Sorry I've only just seen your post now - but you seem to have resolved the issue already. Well done!

    Cass

  4. esmi
    Member
    Posted 3 months ago #

    Use the depth parameter with wp_list_pages():

    <?php wp_list_pages'title=&depth=1');?>

  5. Schwartz-Reports
    Member
    Posted 3 months ago #

    Try this plugin. Works great.

    Exclude Pages from Navigation

  6. t31os_
    Member
    Posted 3 months ago #

    No need for a plugin if you utilise the function parameters, using depth should resolve the problem, as Esmi has shown above.

Reply

You must log in to post.

About this Topic