I have a situation here on how to change my active link css based on the hashtag. All the content was in the same page and I use the #url section to call the content.
i
jQuery(function() { jQuery('a').each(function() { if (jQuery(this).attr('href') === window.location.href) { jQuery(this).addClass('active'); } }); }); .active { color: #BBA842!important; }