I am using the wordpress menus on a website, but the problem is that one of the links on that menu is www.homepage.com/#order
So, when I am on the homepage, both "home" and "order" links on the menu contain the class current_page_item, which with my css it makes them appear both as the active button.
How can I make it so the #order link never contains that the current_page_item class?
Here's a screenshot of how the menu looks when visiting the homepage and how I set it up on the admin panel:
http://img87.imageshack.us/img87/7666/screenshotrq.png
On the firebug panel you can see that both www.homepage.com and www.homepage.com/#order menu links contain the current_page_item class.
This is the php code I am using to display the menus:
<?php
$args = array(
'menu' => 'Top Menu',
'sort_column' => 'menu_order',
'container_class' => ' '
);
wp_nav_menu($args);
?>
current-menu-item
andcurrent_page_item
, but notcurrent-page
, and I can't replicate this situation (only one link "lights up" for me). Can you edit your question to include a screenshot of the admin area and the front side? (Use@Jan
if you reply to me in a comment and I get a notification)/
or/#order
for the link. But I see One Trick Pony already solved it, so that's great! The full rules for@username
replies are complicated, just remember that the first name you mention with at least three characters will get a notification. So@Roc
would also work for you (unless someone else namedRoc
also participated in the discussion). For me it's easy, both@Jan
and@JanFabry
would work (you must leave out spaces).