• Hi,

    I’m currently using a heavily modified WordPress theme that does not contain drop down menus in the navigation bar. However, I was wondering whether I could add this.

    The current navigation bar code is as follows:

    <ul id=”navBar”>
    <li<?php if ( is_single() || is_search() || is_archive() ) { echo ‘ class=”current_page_item”‘; } ?>>“><span>Home</span>
    <?php wp_list_pages(‘link_before=<span>&link_after=</span>&title_li=’); ?>

    Can I change anything to this code to allow sub-pages to show up in a drop down list?

    thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Check if your theme supports custom menu by clicking on Appearance Menus.

    if you are using wordpress 3+ then it will have menus, then you can change the functions file that supports the wp_nav_menu include.
    so that you can copy those code which is used for support and embed in your theme

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change navigation in header.php to include drop down’ is closed to new replies.