Title: Coding for Subpages
Last modified: August 19, 2016

---

# Coding for Subpages

 *  [csisball](https://wordpress.org/support/users/csisball/)
 * (@csisball)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/coding-for-subpages/)
 * 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.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Moderator [cubecolour](https://wordpress.org/support/users/numeeja/)
 * (@numeeja)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/coding-for-subpages/#post-1913357)
 * You can use the [pixopoint menu plugin](http://wordpress.org/extend/plugins/pixopoint-menu/)
   to add a drop down menu if your theme was not designed with one originally.
 *  [davidandre](https://wordpress.org/support/users/davidandre/)
 * (@davidandre)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/coding-for-subpages/#post-1913376)
 * 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

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Coding for Subpages’ is closed to new replies.

## Tags

 * [child pages](https://wordpress.org/support/topic-tag/child-pages/)
 * [Parent Pages](https://wordpress.org/support/topic-tag/parent-pages/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [davidandre](https://wordpress.org/support/users/davidandre/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/coding-for-subpages/#post-1913376)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
