WordPress.org

Support

Support » Themes and Templates » Change navigation in header.php to include drop down

Change navigation in header.php to include drop down

  • nicoraes

    @nicoraes

    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)
  • govpatel

    @govpatel

    Check if your theme supports custom menu by clicking on Appearance Menus.

    iteamweb

    @iteamweb

    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.
Skip to toolbar