Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save projoomexperts/ef7fe6522c6989e611bca4b578f585aa to your computer and use it in GitHub Desktop.
Save projoomexperts/ef7fe6522c6989e611bca4b578f585aa to your computer and use it in GitHub Desktop.
Bigcommerce left menu add active class
var url = window.location.href;
jQuery('.Left .sf-menu li a').each(function(){
var gthis = jQuery(this);
var furl = gthis.attr('href');
if (furl == url){
gthis.parent().addClass('active-ul');
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment