Change navigation in header.php to include drop down (3 posts)

  1. nicoraes
    Posted 5 years ago #


    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?


  2. govpatel
    Posted 5 years ago #

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

  3. iteamweb
    Posted 5 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.