Wordpress - Active Menu Item Issue

I am working on a client project and they are creating a link in their menu item that goes to the same page instead of another page.

http://www.jmtmidwest.com - About Us
Link goes down to ‘id’ our_history on the same page.

I am wondering why this is getting the class “current-menu-item” attached to it and showing as the red ‘active’ color instead of white.

If i use just the id anchor text #our_history it shows in white, but then doesnt work from other pages of the site. As soon as I add the full address it goes to ‘active’ red.

Any help appreciated - Thanks

My guess is that I need to alter the wp_menu function inside the “wp-includes/nav-menu-template.php” to not look at the menu id of “#menu-item-298”, but I am unsure of how to do this.

// give front page item current-menu-item class when extra query arguments involved
} elseif ( $item_url == $front_page_url && is_front_page() ) {
$classes = ‘current-menu-item’;

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.