Support » Fixing WordPress » Hiding the Main Navigation on a single page in WordPress

  • [ Moved to the Fixing WordPress sub-forum. ]

    Hi,
    Can anyone help me please to hide the main nav on a single page, which I am using as a landing page.
    I have this css snippet (below), it is one of 10 different snippets that I’ve tried but none have worked.

    .page-id-5902 menu-main {
    display: none;
    }

    Thanks

Viewing 1 replies (of 1 total)
  • can you post a live link to your site to allow troubleshooting help?

    generally .home would be the CSS class for the landing page;
    are you sure that .page-id-5902 is the right selector for the landing page?
    is .menu-main the CSs selector for the nemu in your theme?

    that your style is not working could be just a CSS error; try:

    .page-id-5902 .menu-main {
    display: none;
    }

    or:

    .home .menu-main {
    display: none;
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Hiding the Main Navigation on a single page in WordPress’ is closed to new replies.