18 October

Make active the home-menu item, when homepage is selected (HelloCoco)

: 0 Comments

If you have HelloCoco Theme, and you want to make active the home-menu item, when the homepage is selected, you have to add a short piece of javascript code in your custom.js (skinfrontenddefaulthellococojscustom.js)

Add this:
url=location.pathname;
if (url==”/hellococo/” || url==”/hellococo/index.php”)
jQuery(“#nav li:first”).addClass(“active”);

Back to Top