I m using a one page theme. I would like to disable or choose not to show the menu on the home page. But when user scrolls down to the next page the menu should become fixed. I have removed the menu from the home page now, however i’m not able to get the menu to be fixed on top for the other pages.
Please advice.
You can also go the
CSS
way.WordPress adds a class
home
to the body attribute in home page. You can target that particular attribute to hide the menu as shown below.This will hide the menu from home page but will show it on other pages
Note – replace
.menu-class-name
with your own menu classyou can do it some thing like the below code: