vikrantnegi
2/2/2017 - 9:38 AM

Custom active nav

Custom active nav

     //nav active class      
      $(function(){
        $('.nav-custom > li > a').filter(function() {
          return (this.href == location.href);
        }).parent('li').addClass('current-page-item');
      });