Support » Fixing WordPress » current_page_item and multiple menus

  • Hello Everyone,

    So, I am trying to highlight the current page that I am on by using the current_page_item. There is a nav menu in the header and an identical nav menu in the footer. They are both dynamically built and are being called using wp_nav_menu(). The menu in the footer is a custom sidebar that has been registered in the functions.php file.

    Currently, when I use the current_page_item in my css it works perfect for the menu in the header, but not the footer. This is the issue. Why isn’t the menu in the footer getting the class of current_page_item?

    Thanks for your help.



Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘current_page_item and multiple menus’ is closed to new replies.