current item class not applied when calling a page a-href-link in footer
-
Hey there
my theme has a footer and this footer has a simple “self-made” link to my contacts page:
<a href="<?php echo(get_permalink(130));?>">Kontakt</a>
Besides that, I link to my contacts page via the sidebar menu. Also I am using the Vertical Accordion Menu.
When I call the contact page from within my sidebar-menu – that one generated by WordPress – the menu-item is highlighted. Because it has the “current-item” class.
But when I call the contact page from my footer, the “current-item” class is not applied to the item in the sidebar-menu and therefore the item is not highlighted.
So i guess, the point is, I cannot link to one page, I am not allowed to do that from more than one menu-item , right? Not right? Need to hack?
I also tried to use wp_nav_menu and to build a wp-menu with just that single menu-item. I put it in the footer but. Still not working, because, apparently, this menu-item has another css-id.
Would be great if anyone could help me with that
N.
- The topic ‘current item class not applied when calling a page a-href-link in footer’ is closed to new replies.