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 a Sidebar in WordPress (Step by Step)

How to Remove a Sidebar in WordPress (Step by Step)

Short answer

Open the page in the editor and choose a full-width or no-sidebar template, or set the site-wide layout to no sidebar in Appearance > Customize. In a block theme, open Appearance > Editor, edit the template and delete the column that holds the sidebar, then clear your cache.

Key takeaways

  • Most themes offer a full-width or no-sidebar template for single pages.
  • Site-wide sidebar settings usually live in the Customizer under Layout or Sidebar.
  • Block themes need the sidebar column deleted from the template in the Site Editor.
  • CSS can hide a sidebar quickly, but the HTML still loads.
  • Use a child theme for code changes so theme updates do not undo them.

How do you remove a sidebar in WordPress?

Pick a full-width or no-sidebar layout in your theme's Customizer or the page's Template setting, or, in a block theme, delete the sidebar column from the template in the Site Editor.

How you do it depends on your theme. Most modern themes give you a sidebar layout option, so you rarely need code.

MethodRemoves the sidebar fromSkill needed
Page template (Full Width or No Sidebar)One page or postNone
Theme Customizer layout settingWhole site or post typesNone
Per-post layout box from the themeOne page or postNone
Site Editor template edit (block themes)Every page using that templateLow
Remove all widgetsWhole site, in some themesNone
CSSAnything, but only visuallyLow
Child theme codeAnythingDeveloper

Start with the first options in the table. They are the safest, and they survive theme updates.

How do you tell if you have a block theme or a classic theme?

Look under the Appearance menu: if you see Editor, you have a block theme, and if you see Customize and Widgets, you have a classic theme.

This matters because the two work differently. Classic themes register widget areas in PHP and control layout through theme options. Block themes build the sidebar from blocks inside a template, which you edit in the Site Editor.

Some themes are hybrids. They may show both the Customizer and some block features. If you are unsure, check your theme's documentation for sidebar or layout.

How do you remove the sidebar from one page?

Edit the page, open the Template setting in the editor's sidebar panel, choose a full-width or no-sidebar template, and update the page.

Step by step:

  1. Open the page or post in the editor
  2. Open the Settings panel on the right (the Page or Post tab)
  3. Find Template, which may sit under the page summary or a Page Attributes section
  4. Pick an option such as Full Width, No Sidebar or Blank
  5. Click Update and view the page

Template names vary by theme. If none look right, your theme may not include a full-width template for that post type.

Many popular themes also add their own layout box to the editor. Look for a panel named after your theme with a sidebar option of No Sidebar, Default or similar.

How do you remove the sidebar site-wide in a classic theme?

Go to Appearance > Customize, find the Layout or Sidebar section, set the default to no sidebar or full width, and click Publish.

Many popular themes put sidebar controls in the Customizer. Common names are Sidebar, Layout, Blog Layout or Content Layout. Some let you set a separate default for posts, pages, archives and the shop.

Steps:

  1. Go to Appearance > Customize
  2. Look for Sidebar or Layout
  3. Set the default layout to No Sidebar or Full Width
  4. Repeat for each content type if the theme splits them
  5. Click Publish

The Customizer documentation explains the screen itself. Your theme's docs explain its own sidebar options.

Will removing widgets remove the sidebar?

In many classic themes, yes, because the theme only shows the sidebar when its widget area has content, but some themes show default widgets or keep an empty column.

To try it:

  1. Go to Appearance > Widgets
  2. Open the Sidebar or Primary Sidebar area
  3. Remove every block or widget in it
  4. Click Update
  5. View the site in a private window

If the content now stretches across the page, you are done. If you see a blank column or default widgets like Search and Archives, the theme needs a layout setting instead.

Want to keep the widgets for later? Move them to an unused area, or save them in a reusable pattern first. Our guide to editing a widget in WordPress covers the Widgets screen.

How do you remove the sidebar in a block theme?

Open Appearance > Editor, edit the template that shows the sidebar, select the column or group that holds it, delete it, and save the template.

Step by step:

  1. Go to Appearance > Editor
  2. Open Templates and choose the one used by the page, such as Single Posts or Pages
  3. Open the List View to see the template's structure
  4. Find the Column or Group block that holds the sidebar content
  5. Delete that block, or delete the whole Columns block and keep only the content
  6. Click Save

Every page using that template changes. If you only want one page without a sidebar, create a new template instead and assign it to that page.

The Site Editor documentation covers templates in more detail. Our guide on creating a custom page template also shows how to add a new one.

How do you remove the sidebar on WooCommerce pages?

Check your theme's Customizer for a shop or WooCommerce layout setting first, since many themes control the shop sidebar separately from posts and pages.

If there is no setting, the sidebar usually comes from WooCommerce's woocommerce_sidebar action. A developer can remove it in a child theme or snippets plugin:

add_action( 'wp', function () {
    remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10 );
} );

Some themes add the shop sidebar their own way, so this snippet may not work everywhere. Test on a staging site first.

For block themes, edit the Product Catalog or Single Product template in the Site Editor, the same way as other templates.

How do you remove the sidebar with CSS?

Add CSS in Appearance > Customize > Additional CSS that hides the sidebar element and lets the main content take the full width.

A common pattern for classic themes:

#secondary,
.sidebar {
    display: none;
}
#primary,
.content-area {
    width: 100%;
    max-width: 100%;
}

Class and ID names differ by theme. Right-click the sidebar, choose Inspect to open your browser's developer tools, and note the element's id or class before you write the rule.

CSS only hides the sidebar. The HTML still loads, so it is a quick fix rather than a clean one. The MDN display reference explains how display: none works.

How do you remove the sidebar with code?

In a child theme, copy the template file that calls get_sidebar(), remove that call, and adjust the layout CSS, or unregister the sidebar with unregister_sidebar().

Two developer options:

  • Edit the template: copy page.php, single.php or another template into your child theme and delete the get_sidebar() line. The theme handbook chapter on sidebars shows how themes load them.
  • Unregister it: call unregister_sidebar() with the sidebar's ID on the widgets_init hook with a late priority, so it runs after the theme registers it.

Always use a child theme. Editing the parent theme's files directly means your changes vanish on the next theme update.

Why is the sidebar still showing after you removed it?

The most common reasons are caching, a per-page layout that overrides the global setting, a page builder layout, or a template that the page does not actually use.

Check these in order:

  • Clear your caching plugin and CDN cache, then reload in a private window
  • Open the page editor and check its own layout or template setting
  • If you use Elementor or another builder, check its page layout option
  • Confirm which template the page uses in the Site Editor
  • Look for a plugin that adds its own sidebar, such as a shop or forum plugin

Our guide on clearing cache in WordPress covers each cache layer.

Should you remove the sidebar at all?

Remove it when it distracts from the main content or slows the page, and keep it when it holds navigation, calls to action or widgets that visitors actually use.

Full-width layouts often read better on landing pages, sales pages and long guides. Blogs with category menus or newsletter forms may lose useful links if the sidebar goes.

A middle path is to move key items elsewhere. You can add useful widgets to the footer instead, as shown in our guide on adding a footer widget in WordPress.

Remember that on phones, most themes already move the sidebar below the content. Check your analytics to see how many visitors use desktop before deciding.

Frequently asked questions

How do I make a WordPress page full width?

Edit the page and choose a Full Width or No Sidebar template in the Template setting. If your theme has no such template, look for a layout option in the Customizer or the theme's own settings box in the editor.

Why does my sidebar still show after removing all widgets?

Some themes show default widgets or keep the sidebar column even when the widget area is empty. Use the theme's layout setting to pick no sidebar instead. Also clear your cache, since an old cached page may still be showing.

How do I remove the sidebar from blog posts only?

Many themes have a separate layout setting for single posts in the Customizer. In a block theme, edit the Single Posts template in the Site Editor and delete the sidebar column. Pages keep their own layout either way.

Can I remove the sidebar on mobile only?

Yes, with CSS inside a media query that hides the sidebar on small screens. Many themes already move the sidebar below the content on phones, so check your site on a phone before adding any code.

Is it bad for SEO to remove the sidebar?

No. Search engines care about your main content and internal links, not the sidebar itself. If the sidebar held useful links, move them into menus, the footer or the content so visitors and crawlers can still find those pages.

Sources

  1. Sidebars WordPress Theme Handbook
  2. unregister_sidebar() WordPress Code Reference
  3. Site Editor WordPress.org Documentation
  4. Appearance Customize Screen WordPress.org Documentation
  5. display MDN Web Docs

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.