WordPress.org

Forums

Coding for Subpages (3 posts)

  1. csisball
    Member
    Posted 4 years ago #

    I'm creating a blog for a friend and I want it to allow her to be able to create subpages if she desires. I'm using a template called voodoo dolly, but I've altered it quite a bit to fit my needs. Anyway I can't figure out how to get the subpages to drop down when the parent page is scrolled over. And it seems like a simple task of just finding the answer online, but I've been searching for the last hour now and everything I came up with either didn't help or was over a year old and the codes posted no longer existed for whatever reason. All I need is for someone to tell me what to type and where. I'm used to CSS and HTML but PHP is totally new to me. If you need any part of my code please tell me what and I'll post it. Thanks so much in advance.

  2. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 4 years ago #

    You can use the pixopoint menu plugin to add a drop down menu if your theme was not designed with one originally.

  3. davidandre
    Member
    Posted 4 years ago #

    Hi csisball,

    I guess your theme is using with the wp_list_page of the 2.9 wordpress version. So open your header.php and localize the wp_list page function and change the depth like that:
    <?php wp_list_pages('title_li=&depth=0'); ?>

    Then you ll have to deal with css. to show the child page just when hover.
    Hope it helps,
    bye

Topic Closed

This topic has been closed to new replies.

About this Topic