Title: Dynamically Highlighted Navigation
Last modified: August 20, 2016

---

# Dynamically Highlighted Navigation

 *  [npCoda](https://wordpress.org/support/users/npcoda/)
 * (@npcoda)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/dynamically-highlighted-navigation/)
 * Hi! I am new to WP. I have found problem in highlighting current page Navigation.
   
   In my navigation part I have used following code:
 * > <div id=”menu”>
   >  <ul id=”nav”> <?php wp_nav_menu(array(‘menu’=>’Main Nav Menu’));?
   > >
   > </div>
 * <!– end menu –>
 * In php function file I have added following code
    **function.php**
 * //Declare main menus
 *     ```
       if (function_exists('register_nav_menus')) {
           register_nav_menus(
                   array(
                       'main_nave' => 'Main Nav Menu'
           ));
       }
       ```
   
 * I have defined menu dynamically.
    Thank you for you help.

The topic ‘Dynamically Highlighted Navigation’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [npCoda](https://wordpress.org/support/users/npcoda/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/dynamically-highlighted-navigation/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
