Easy Ways to Remove WordPress Sidebar

Do you want to get rid of the sidebar in your WordPress? The WordPress sidebar is an open section to the right, left, or bottom of the theme. The sidebar is usually used to display various additional features in WordPress.

While very useful, sometimes users want to remove the WordPress sidebar because they want to use a widget-free page. Most modern themes already have a specific option in their settings panel to remove the sidebar – not all of them. But there are still many themes that do not provide a widget-free theme option.

In this article we will show you how to get rid of the WordPress sidebar easily.

If you visit the website sometimes you see a view with columns on the right or left side. This column usually displays the widgets provided by WordPress.

The content in the sidebar column is sometimes also in the form of a link that leads to a different area on your website, advertisements, article subscription forms, social media profiles, popular posts, recent posts, and others.

When you open with a mobile application, the sidebar does not appear on the right or left of the page but rather at the bottom to reduce the size of the screen.

The sidebar can be something that can be used to develop a bigger business. Most AdSense users also take advantage of the sidebar to increase their earnings.

However, some website owners decide to remove the sidebar because it is considered to increase user experience. If you are looking for a way to get rid of the sidebar in WordPress, this article is for you to read to the end.

remove wordpress sidebar

You can differentiate sidebar settings between static pages (static page) with other pages and still display the sidebar on other pages.

For example, most websites display a sidebar on their blog pages, but not the articles or blog posts themselves. Or distinguish between the homepage page with other pages.

Some modern WordPress themes provide templates that no longer use the sidebar – usually named ‘full width‘- for static page. Therefore removing the sidebar in static page very easy to do.

If your theme already provides a widget-free template, remove the sidebar from static page the method is the same as removing the sidebar in single post. You just use the Page Attribute meta box option, then select the Full Width template.

However, if this option does not appear, it means that the theme you are using does not provide a template without a sidebar.

No need to be confused, you can follow this guide to create a template without a sidebar yourself.

  1. Use a text editor, then create a new file. Name this file no-sidebar.php and save it to your desktop device.
  2. Access your hosting using FTP Client.
  3. Search folder “/wp-content/themes/your-themes”.
  4. Edit the page.php file, then copy all the contents of the file and paste it into the file no-sidebar.php.
  5. After sign add the below line of code.
/*Template Name: Full Width*/
  1. Then delete the line of code sidebar and save. Example of a sidebar line of code like .
  2. Upload the no-sidebar.php file into the theme using FTP access.
  3. Finished! You already have a theme without a sidebar that you can use to create posts without using a sidebar. You can try accessing the website to be sure.

2. Remove WordPress from Blog Post Pages in WordPress

You can use this guide to remove the sidebar only in the blog page –static pages will not be affected by this setting.

  1. On the WordPress dashboard page, go to “Settings » Reading”.
  2. Under Reading, look for the name of your blog page, such as “Tutorial”, “About” or something else.
  3. Then open “Pages » All Pages”.
  4. Find the name of your blog page.
  5. Then in the Page Attributes and select No-Sidebar.
  6. If you can’t find the No-Sidebar template option, you’ll need to add it manually.
  7. Repeat the procedure for creating templates manually in the previous point.

You can use this method to get rid of the sidebar in single posts only. You must have access to FTP which will be used to upload the file containing the template code.

Step 1 – Create Template File

First, you need to open an editor on your computer like Notepad, Gedit, or something else. Then paste the code in the file.

The above code will create a new template with the name Free Style. You can save this file with the name “free-style-template.php” or by another name on a desktop computer.

Step 2 – Upload Files to Server

Then upload the file free-style-template.php into the (active) WordPress theme using FTP or File Manager in cPanel. Look for the folder “../wp-content/themes/your-themes”.

Step 3 – Check on the Dashboard Page

You can see the changes made by opening an old post or creating a new post.

remove wordpress sidebar

In the “Post AttributeYou will see a selection of templates Free Style.

At this point, the Free Style template is still empty, so using the Free Style template will result in a white display only.

The easiest way to complete this step is to copy the code from the theme file single.php and use it.

Notes! Just like the other sections, sometimes some themes already provide a template without a sidebar for you. So you just use it through the Post Attribute column.

Step 4 – Copy the Code Inside the Single.php File

Open file single.php then copy anything after the line get_header().

Paste everything to the very bottom free-style-template.php. The thing you need to do is modify the file free-style-template.php just delete the line code sidebar.

Save and re-upload the free-style-template.php file to your server using FTP access or access to cPanel.

You can use this method to remove the sidebar on every post and page in WordPress.

Step 1 – Access Hosting Using FTP

First you need to access the server using an FTP client and navigate to the folder “../wp-content/themes/current-themes/folder”.

WordPress themes are composed of different templates, so you will need to change all the templates in each sidebar that is displayed.

In WordPress in general you need to change files index.php, page,php, single.php, single.phpand archive.php, home.phpand others.

You need to find the line of code in all templates and then delete. You can simply delete all those sidebar rows to delete the sidebar.

If there are multiple templates, you can simply remove the sidebar line of code throughout the template. Do not forget save changes that have been made.

Step 3 – Check Website

When you access the website, the sidebar should no longer appear. But your main content will stay the same size. This is because the theme you are using already determines the size of the main content, so you need to adjust the size of the main content again.

Step 4 – Perform Custom CSS

In order for the main content to be the same width as the page, you should look for the CSS class used to set the main content size value. Once found, you can simply change the value of each CSS through the custom CSS tool.

You can use the guide how to add CSS in WordPress to get it done.


Removing the sidebar in WordPress is quite simple. It’s just that you need to do it more carefully, because you need to change lines of code and even add new files into the WordPress theme. For those of you who don’t have a technical background, it might be a little difficult.

But we hope this article has explained to you easily how to get rid of the WordPress sidebar.

If you want to get the latest information from us, don’t forget to click subscribe and leave a comment if there are still questions you want to tell us.

Create by Ipadguides in category of Blog