Hello i have this js script to get the url and show an active link on main nav menu and in sub menu. The only problem is that if i click a link in main menu and get the active color for that link then the sub menu will also show that same color. I dont want the sub menu links to show this color, i dont want the submenu link color to change before i click a link in the sub menu.
jQuery(document).ready(function($){
var url = window.location.href;
$('.ribbon a').filter(function() { return this.href == url;})
.closest('li').addClass('current_yes').addClass('sub_current_yes');});