0

jQuery(function(){
  var current = location.pathname;
  jQuery('.page-menu li a').each(function(){
   var $this = jQuery(this);
   // if the current path is like this link, make it active
   if($this.attr('href').indexOf(current) !== -1){
    $this.addClass('currentitem');
   }
  })
})

admin Asked question May 8, 2021
Add a Comment