html - Highlighting current menu item if PHP include -


if make menu nav in html , use php include in every page on website, how go highlighting current page if can put on page include("menu.html");

you can write menu in php since using php load menu run if/else statement on menu-items check if "href" in link matches current url of page , set menu item "active".


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -