I wonder how can I disable roots from setting the class active to a menu item.
My case is I dont want to have a “Home” menu. So it means in my home page there shouldn’t be any active class but when I remove this from menu, roots sets the first page in the menu to active.
In other words, how can I achieve something similar like the menu in roots.io ??
I think you have two options.
First, many sites don’t have “Home” in the menu, since the logo links to the homepage.
Second, if you want “Home” to be in the menu, you can simply connect two classes, like so:
It’s not something I’ve seen before. The custom menu hierarchy is pretty solid, but when mixed with the page hierarchy you often get active classes you don’t need.
It’s not intended as a specific fix for you but try replacing the roots_nav_menu_css_class with the following;