Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 67836

FIXED: current-menu-item not work

$
0
0

Replies: 0

I just fixed this annoying trouble simply changing single quotes by double quotes in the code and adding “current_page_item” also.

Now, its working like a charm \o/

// highlight the current menu item
jQuery(“ul.fusion-menu li”).each(function() {
jQuery(this).removeClass(“current_page_item”);
jQuery(this).removeClass(“current-menu-item”);
});
jQuery(thiss).parents(“li”).addClass(“current_page_item”);
jQuery(thiss).parents(“li”).addClass(“current-menu-item”);


Viewing all articles
Browse latest Browse all 67836

Trending Articles