Change External Html Header Active Menu
I have an external Bootstrap navbar header which I include in every page as The external header html file is given below:
Solution 1:
You can either send a variable through POST/GET using php and set the class accordingly, or you can try using jquery to find specific elements that exist in each page and add a class accordingly, for example
if ($('#specific-page-element-1').length) {
$('menuelement-1').addClass('active');
}
Post a Comment for "Change External Html Header Active Menu"