Hello wordpress friends, this is the first time i post here and i would really love to get some help.
I'm having a really weird issue for some time now and i feel like it's time to get it resolved.
On the header.php of my template i'm calling this nav:
<nav class="top-nav"><?php wp_nav_menu( array( 'theme_location' => 'header-navigation' ) ); ?></nav>
Works perfectly, and gives me the lovely hook "current-menu-item" on the current menu item.
The problem is, when i try to call the same nav on my footer:
<nav class="bottom-nav"><?php wp_nav_menu( array( 'theme_location' => 'header-navigation' ) ); ?></nav>
I don't get the "current-menu-item" class, even if i call a totally different nav, it just won't output the class.
I just tested the two navs together in the header and they both output the current-menu-item class, so i'm thinking it has to be the footer that's doing something fishy.
The template is fairly simple, looks like this:
Any clue?, thanks!