WordPress GuideBuild → Remove Sidebar

How to remove a WordPress sidebar

Two men work on laptops at a desk

Many WordPress themes include a sidebar by default, but sometimes you want a full-width layout instead. Whether you’re creating landing pages or just want a cleaner design, here’s how to remove the sidebar in WordPress—no matter your skill level.

Get fast, reliable hosting for WordPress

Power your site with the industry’s fastest, most optimized WordPress hosting

Understanding how sidebars work in WordPress

WordPress sidebars are usually controlled by a theme’s sidebar.php file. They’re included in templates like page.php, single.php, or index.php using the get_sidebar() function. Most themes also register widget areas so users can populate sidebars without touching code.

Common sidebar locations:

1. Remove sidebar widgets (non-code method)

You can start by emptying the sidebar widget area.

2. Use full-width templates

Some themes offer full-width or no-sidebar templates you can apply per page.

If your theme doesn’t include these templates, move on to a plugin or custom template method.

3. Customize layout from the WordPress Customizer

Many themes let you turn off sidebars using the Customizer.

Themes like Astra, GeneratePress, and OceanWP make this especially easy.

4. Use a plugin to disable or replace sidebars

Plugins can make editing your WordPress site much easier, and safer.

Plugin: Fullwidth Templates for Any Theme & Page Builder

This plugin adds blank and full-width templates to most themes.

Plugin: Custom Sidebars – Dynamic Widget Area Manager

This plugin adds blank and full-width templates to most themes.

This doesn’t remove the sidebar container but lets you show nothing on specific pages.

5. Remove the sidebar via theme file editing

Only use this method if you’re comfortable with PHP and using a child theme.

How to remove the sidebar from specific posts or pages

Option 1: Create a custom page template

Option 2: Use Elementor (Free or Pro)

Bonus: In Elementor Prose you can use the Theme Builder to apply a no-sidebar layout globally to posts or archives.

Child theme considerations

If you plan to edit templates or remove sidebars via PHP, always use a child theme. This prevents your changes from being lost during theme updates.

Additional resources

How to build a WordPress site →

A complete beginner’s guide that covers 9 key steps to a successful launch

WordPress excerpt length: What it is, how to change it →

Learn how to change excerpt length in WordPress to control content previews and improve your site’s layout and readability.

How to use WordPress Gutenberg blocks →

A complete beginner’s guide to Gutenberg blocks