Title: sorting out messed up code for sub-menu
Last modified: August 19, 2016

---

# sorting out messed up code for sub-menu

 *  Resolved [drh4916](https://wordpress.org/support/users/drh4916/)
 * (@drh4916)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/sorting-out-messed-up-code-for-sub-menu/)
 * I was following the instructions from frosken (which were really great and helped
   someone do exactly what I wanted to do) in another forum post and now my menu
   is completely blank. I tried to restore it by copying in the code from file before
   I made the changes and it is still blank. Help!
 * Here is the code in my header.php file
 *     ```
       <div id="menu">
   
       <ul>
       			<li class="current_page_item<?php if (is_home()) echo ' current_page_item'; ?>"><a>/" class="current_page_item">Home</a>
       			<?php wp_list_pages('title_li=' ); ?>
       		</ul>
       </div>
       ```
   
 * I think I just need to do something with the <?php wp_list_pages(‘title_li=’ );?
   > bit to make child pages show up when you hover over the parent page in the 
   menu.
 * Can someone point me in the right direction or troubleshoot this for me?
 * Thanks.

The topic ‘sorting out messed up code for sub-menu’ is closed to new replies.

## Tags

 * [navigation](https://wordpress.org/support/topic-tag/navigation/)
 * [parent child](https://wordpress.org/support/topic-tag/parent-child/)
 * [sub-menu](https://wordpress.org/support/topic-tag/sub-menu/)
 * [wp_list_pages](https://wordpress.org/support/topic-tag/wp_list_pages/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [drh4916](https://wordpress.org/support/users/drh4916/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/sorting-out-messed-up-code-for-sub-menu/)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
