Plugins Plugin hub Backup SEO Caching Security Forms WooCommerce Images Best backup plugins
Hosting Hosting directory Shared hosting Managed WordPress Cloud hosting VPS hosting By reader location Hosting finder
Themes & builders Compare Rank Math vs Yoast
Tools All tools Hosting finder Plugin stack builder Cost calculator Salt generator Theme detector Who is hosting this? Speed test Headline analyzer robots.txt generator Redirect generator Uptime calculator Blog name generator
Blog Best backup plugins Deals
Guides All guides Speed up WordPress Choose hosting Back up WordPress
How we test

Setup & site building · Guide

How to Remove Menu From WordPress Page (Step by Step)

How to Remove Menu From WordPress Page (Step by Step)

Short answer

To remove the menu from one WordPress page, assign it a template without a header in the page settings, or create one in the Site Editor for block themes. You can also hide the menu with CSS using the page ID body class, or use a page builder canvas layout.

Key takeaways

  • Block themes use a custom template made in the Site Editor.
  • Classic themes often include a blank or no-header page template.
  • CSS with the page ID class hides the menu on one page.
  • Elementor Canvas removes the theme header, footer and menu.
  • Unassign the menu location to remove it from every page.

How do you remove the menu from a WordPress page?

You can remove the menu from a single WordPress page by giving that page a template without a header, hiding the menu with page-specific CSS, or using a page builder's blank canvas layout.

The right method depends on your theme. Block themes let you build a custom template in the Site Editor, while classic themes usually offer a full-width or blank template, or need a small CSS rule.

Most people want this for landing pages, sales pages, thank-you pages and coming-soon screens. Removing the menu keeps visitors focused on one action.

If you want to remove the menu from every page, the approach is different and simpler. That is covered near the end.

MethodWorks withRemovesSkill level
Custom template in the Site EditorBlock themesWhole header or just the menuBeginner
Theme's blank or no-header templateMany classic themesHeader and often footerBeginner
Page-specific CSSAny themeMenu only, hidden from viewBeginner to intermediate
Page builder canvas templateElementor and similarHeader and footerBeginner
Theme page optionsThemes like Astra, Kadence, GeneratePressHeader, menu or title per pageBeginner
Unassign the menu locationClassic themesMenu on every pageBeginner

Is your theme a block theme or a classic theme?

Check under Appearance in your dashboard: if you see Editor, you have a block theme, and if you see Menus and Customize, you have a classic theme.

This matters because the two theme types store headers differently. Block themes build headers from blocks in template parts, while classic themes build them in PHP files.

Our guide on block themes versus classic themes explains the difference in more detail if you are unsure which one you are using.

Before you start, take a quick backup or work on a staging copy. Template changes are easy to undo, but it is still good practice.

How do you remove the menu in a block theme?

In a block theme, create a custom template for the page in the Site Editor and remove the header template part or the Navigation block from that template.

This keeps the change limited to the pages that use the new template. Your other pages keep the normal header.

  1. Open the page in the block editor.
  2. In the Page settings sidebar, find the Template option.
  3. Choose to create a new template and give it a clear name, such as No Menu.
  4. The template editor opens with a copy of your default page template.
  5. Select the header and delete it, or open it and remove only the Navigation block.
  6. Save the template, then update the page.

The WordPress documentation on the Site Editor explains how templates and template parts work.

Be careful not to edit the shared header template part itself. Changes there apply to every page that uses it. If you only want to remove the menu and keep the logo, create a separate header template part without the Navigation block.

The Navigation block documentation covers how the block works if you want to edit menu items instead. Our guide on editing the header in a block theme walks through template parts step by step.

How do you remove the menu in a classic theme?

Many classic themes include a page template with no header, such as a blank, canvas or landing page template, which you can select from the page's settings.

Open the page in the editor and look for the Template dropdown in the page settings sidebar. Pick an option with a name like Blank, No Header, Canvas or Landing Page.

Popular themes also add per-page options. Astra, Kadence, GeneratePress and similar themes often show a panel below the editor or in the sidebar where you can disable the header, the primary menu or the title for that page.

If your theme has neither, you can create a custom page template. The theme handbook page on page templates shows how to add one, and our guide on creating a custom page template covers the full process.

Put custom templates in a child theme, so theme updates do not wipe them out. Our explainer on what a child theme is covers why.

How do you hide the menu on one page with CSS?

You can hide the menu on one page by targeting the page's unique body class, usually page-id- followed by the page's ID, in a custom CSS rule.

WordPress adds classes to the body tag of every page through the body_class() function. One of them includes the page ID, so you can write CSS that only affects that page.

First, find the page ID. Hover over the page in Pages, All Pages, and look for post= followed by a number in the edit link.

Next, find the menu's CSS class. Right-click the menu on the live page, choose Inspect, and note the class on the menu's wrapper, such as main-navigation or wp-block-navigation.

Then add a rule like this under Appearance, Customize, Additional CSS, or in the Site Editor's custom CSS:

.page-id-42 .main-navigation {
    display: none;
}

Replace 42 with your page ID and the class with your theme's menu class. To hide the whole header, target the header element instead.

This method only hides the menu from view, since the CSS display property set to none removes it from the layout but not from the code. The menu links remain in the page's HTML, which is fine for most landing pages. If the change does not show up, our guide on CSS changes not showing covers caching and specificity issues.

How do you remove the menu with Elementor?

In Elementor, set the page layout to Elementor Canvas, which shows only your Elementor content with no theme header, footer or menu.

Open the page with Elementor and click the settings icon to open Page Settings. Change Page Layout from Default to Elementor Canvas, then update the page.

Elementor Full Width is a different option. It removes the sidebar and page title, but keeps the theme's header and menu.

If you use Elementor Pro's Theme Builder for headers, you can also set display conditions so the header template is excluded from specific pages. The Elementor help center documents both options.

Other builders such as Beaver Builder, Divi and Bricks have similar blank or canvas layouts. Look in the page settings for a template or layout option.

How do you remove the menu from all pages?

To remove the menu from every page, unassign it from the theme's menu location in a classic theme, or delete the Navigation block from the shared header in a block theme.

In a classic theme, go to Appearance, Menus and open the Manage Locations tab. Set the primary menu location to no menu and save.

Some themes then show a fallback list of all your pages. If that happens, assign an empty menu to the location instead of none.

In a block theme, open Appearance, Editor, select your header template part and remove the Navigation block. The Appearance Menus screen documentation explains menu locations for classic themes.

If you only want to remove specific links, edit the menu instead of hiding it. Our guide on linking pages to a menu shows how to add and remove items.

Should you remove the menu from landing pages?

Removing the menu often makes sense on landing pages, checkout steps and thank-you pages, because fewer links mean fewer distractions from the main action.

Keep a way out, though. A logo link to the homepage, or footer links to your privacy policy and contact page, help visitors who arrive by mistake.

Do not remove navigation from normal content pages. Visitors and search engines use menus to find related pages, and hiding them hurts both.

Our explainer on what a WordPress landing page is covers when a focused page without navigation makes sense.

What if the menu still shows after your change?

If the menu still appears, clear your caching plugin and CDN, check that the page actually uses the new template, and make sure no plugin is adding its own menu.

Page caches often keep the old version for a while. Clear them and test in a private browser window.

Mobile menus are sometimes separate from the desktop menu. Check the page on a phone and hide the mobile toggle with CSS too if needed.

Sticky headers, mega menu plugins and header builder plugins may output their own markup. Check their settings for per-page display rules before writing more CSS.

Frequently asked questions

How do I hide the menu on just one page in WordPress?

Use a page template without a header, if your theme has one, or add a CSS rule that targets the page ID body class and sets the menu to display none. Block theme users can create a custom template in the Site Editor without the Navigation block.

Will hiding the menu with CSS affect SEO?

Hiding a menu on a single landing page has little effect, because the links are still in the page code and the rest of the site keeps its navigation. Avoid hiding menus across normal content pages, since visitors and search engines rely on them.

How do I remove the header and footer from a WordPress page?

Choose a blank or canvas template in the page settings, if your theme or page builder offers one. In a block theme, create a custom template and remove both the header and footer template parts, then assign that template to the page.

Why does my menu still show after I removed it?

Caching is the most common reason, so clear your cache plugin and CDN. Also check that the page uses the new template, that the mobile menu is hidden too, and that no header or mega menu plugin is adding its own menu.

Can I remove the menu without a plugin?

Yes. Block themes let you do it in the Site Editor, many classic themes include a no-header template, and CSS in the Additional CSS panel works with any theme. A plugin is only needed if your theme offers none of these options.

Sources

  1. Site Editor WordPress.org Documentation
  2. Navigation block WordPress.org Documentation
  3. Page Template Files WordPress Developer Resources
  4. body_class() WordPress Developer Resources
  5. Appearance Menus Screen WordPress.org Documentation
  6. Elementor Help Center Elementor

Is your product missing, or something out of date?

Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.

About the editors

Written and checked byWPLegible Editorial Team Independent WordPress reviews and guides

Researched from the primary sources listed above and checked against our editorial rules before publishing.