Remove HOME menu link from Home Page

For my home page, I’ve set visible: false in the advanced options. In doing so, Home nav menu is removed when navigating to all other pages such as About, Contact, etc.

Is there a way to only have the Home menu link to not be visible when on the home page but visible on all other pages?

I searched in the form and did not find a solution and apologize if this is a repeated question.

Thank you.

While you could do this with some fancy logic in your navigation twig, frankly I would just use CSS to hide the home link on the home page. This could be done with a body class that is being set on the homepage, and then something like:

.homepage ul.mainmenu li:first-child {
 display: none;

Of course this depends on your CSS

1 Like