I'm trying to remove the main menu from the homepage, for this I used the following code in my custom template:
<referenceBlock name="store.menu" remove="true" />
But the menu is still there while other settings in the template work fine.
What else should I do to remove this main menu ?
Best Answer
To remove the main menu from your home page do the following thing
Create your own theme at this location
Create a theme folder there at below location
Create a
default.xml
file there at below locationPut this code there
This will remove your navigation section
Thank You!