Support » Fixing WordPress » How can I REMOVE the menu?

  • Hi Guys,

    My visitors will find my web pages through links sent to their emails. I don’t want they to navigate on my site, so I don’t need the menu. Maybe on some of the pages it could appear, but most of the pages should have no menu.
    How can I remove the menu (and free up the space of the menu bar)?
    Can I make it appear only on some of the pages?


Viewing 8 replies - 1 through 8 (of 8 total)
  • I might be able to take a look at this if you show me your site. You do not have to have a menu on your site, but you will need to create custom page templates if you want the menu to appear on some not others.



    Forum Moderator

    will depend on your theme;

    please post a link to your site or at least post the name and download link of your theme.

    you will likely need to edit header.php of your theme;
    there might also be a CSS fix to only hide the menu from the screen but it would still be accessible in the html in the browser.

    Here is my sie:

    Some of the pages will remain accessible through the “Read More” buttons, the rest are unaccessible from the Home page.

    My theme is (Black) Hero .




    Forum Moderator

    to permanently remove the menu, remove this whole code section from header.php:

    		<div id="menubar">
    	<?php $navcheck = wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary', 'menu_class' => 'nav' ,'fallback_cb' => '', 'echo' => false ) ); ?>
    	 <?php  if ($navcheck == '') { ?>
    	<ul class="nav">
    		<li class="page_item"><a href="<?php echo home_url(); ?>" title="Home">Home</a></li>
    		<?php wp_list_pages('title_li=&sort_column=menu_order'); ?>
    <?php } else echo($navcheck); ?> 
    	<!--menu end-->

    or try a CSS quick fix by adding this to style.css of the theme, possibly at the very end, or preferrable via a custom CSS plugin:

    #menubar { display: none; }
    #header_container hr { display: none; }

    the second line of CSS is optional to remove the white line which looks odd without the menu.

    if this does not work, please post in the theme’s forum at

    I tried the CSS quick fix, it works. Thanks!

    Hello, I was wondering if you care about SEO on your website? If you are doing anything active about SEO it might hurt your site using a css display:none to hide the menu, instead of removing the html.

    Thank you Mark. I have a long way to get there, but I will surely need to closely consider your advice.

    I was wondering how to do the same thing but just remove the menu from one page (My landing page) in the retina theme?

    any help?


Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How can I REMOVE the menu?’ is closed to new replies.