Deprecated: Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead. in /var/www/html/wp-includes/functions.php on line 5383

remove menu bar

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6724
    hrimati
    Participant

    Hi Andrii,

    I was wondering if there is an easy way to remove the menu bar and search widget for just certain pages?
    I am creating a sales page and I have received lots of advice to remove the menu bar from the page…
    Thanks,
    Susan

    #6725
    mmsatoristudio
    Member

    Hey Susan,

    in order to hide the menu and the search bar from specific pages, please add the following pieces of code to the theme’s “style.css” file (opens by default when you visit “Appearance -> Editor”), one set for each page where you want to hide these elements:

    .page-id-XX #nav-primary, .page-id-XX #header-right {
    display: none;
    }
    

    The two instances of “XX” should be replaced with the ID of the page in question; you can get a page’s ID by entering the edit mode for that page – the numbers after “post=” in your browser’s address bar.

    Sincerely,
    Andrii / Satori Studio

    #6729
    hrimati
    Participant

    Perfect!
    Thank you!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.