The Easiest way to Remove Sidebar from WordPress site

The Easiest way to Remove Sidebar from WordPress site

Do you want to Remove Sidebar on WordPress, but don’t know how to do it?

In most cases, the sidebar is the area of the WordPress pages or posts where most of the WordPress widgets are shown. Comen widgets like recent posts, recent comments, archives, categories, etc.

The WordPress sidebar is an informative part of the WordPress website but, it requires too much space on your webpage. It’s quite impressive but also sometimes it can be distinctive too.

So in this article, we see how you can easily Remove sidebar in WordPress website.

Why remove sidebar in WordPress website?

Almost every website on WordPress has a sidebar, whether it is free or paid. There can be a single sidebar or multiple sidebar.

The main purpose of the WordPress sidebar is to show a list of recent posts and comments, advertisements, and calls to action like email sign-ups, or other content of the website which may not be from the current page.

At the Geek Code Lab, we use the sidebar on blog pages to show the list of recent posts, recent comments, archives, and categories.

The looks of the sidebar can differ on every website, they design as per the need. If you want to remove the WordPress sidebar, so this article can help you a lot. We’ll see here how you can remove or delete the sidebar from your entire WordPress or the specific page.

List of methods

  • Method 1: Using the WordPress theme settings
  • Method 2: Using the full-side editor
  • Method 3: From the individual pages using a plugin
  • Method 4: Using the code

How to Remove Sidebar in WordPress Website

Here below I have described all methods in a detailed manner. Please read carefully and then apply. Without the proper knowledge, you don’t have an expected result and your site can be at risk. So read the whole article and then select your proper way.

Method 1: How to remove sidebar on WordPress with the help of your WordPress theme settings.

I want to tell you that some websites have the built-in option to add/remove a sidebar. And these options depend on how you want to remove the sidebar, from the whole website or selective pages.

For this method, I am using the WordPress best and most popular theme Astra.

Related Article — Top 8 WordPress Plugins To Boost Your Site’s Performance

To check you can also use the same theme and verify. Here you need to head to the WordPress admin > Appearance > Customize.

wordpress-theme-settings-1 - Remove Sidebar From WordPress

If you found the sidebar menu here, now you can go through it. Here you can find the settings for the removal or adding the sidebar.

wordpress-theme-settings-2
Options may like No sidebar, Left sidebar, and Right sidebar. You can select as per your choice but for now, our primary choice is to remove WordPress sidebar, so we’re choosing the No sidebar option.

wordpress-theme-settings-3 - Remove Sidebar From WordPress

If you are using a different theme than Astra, you won’t find a sidebar option then you can look for the page option.

wordpress-theme-settings-4

Into the page option, you can find the sidebar layout settings. Here just select the No Sidebar layout, that’s it.

Remove Sidebar From WordPress

Method 2. Removing the sidebar with the help of a full site editor.

If you have installed the block theme in your WordPress setup, in that case you can use the block editor or Full Site Editing. This way is the fastest way to remove sidebar from WordPress.

For this method, we’re going to use Mix in’ styles- GB theme. The Path to access the editor is Appearance > Editor.

wordpress-theme-block-editor-1

When you arrived at the editor and after clicking on the sidebar then you have a small toolbar appears. Here you can see the remove column option, this can help you to remove sidebar from WordPress.

wordpress-theme-block-editor-2


wordpress-theme-block-editor-3

Method 3. Removing sidebars from individual WordPress pages with the help of a plugin.

If, you only want to remove the WordPress sidebar from some selective pages. Then you can use the builders like Divi, Elementor, or SeedProd plugin.

SeedProd is the plugin that can help you to remove the WordPress sidebar from your selective page. This plugin enables the drag-and-drop features in your website page editor. Here you just have to select the section you want to remove and from the small toolbar just click on the delete icon, there you go!

wordpress-seedprod-editor-1

Method 4. How to remove sidebar on WordPress with the help of theme files (Using code).

This method required coding knowledge or basic knowledge of PHP and WordPress file structure to remove sidebar in WordPress page. Because, we have to edit some PHP files in the WordPress theme. And editing WordPress files is not so easy for the beginner, so if you don’t have any idea about coding then, I request you don’t update any WordPress files. If you made any wrong changes to the files then the website can crash and give some critical errors.

Okay now if your website doesn’t have any in-built theme options to remove the sidebar from WordPress, then don’t worry. You can use File Zilla or Theme File Editor to edit your theme files.

Here is one thing you have to note if you’re going to edit theme files and in any condition, you update the file then the changes will disappear.

There are also some other ways to access the file system of your WordPress site but, here we are going to use File Zilla or Theme File Editor to access the theme files.

Remember that all WordPress themes have a different kind of file structure, so we have to edit all the files which have included a sidebar. Files like index.php, single.php, archive.php, page.php, front-page.php or home.php, and so on.

Okay now if you have to edit the file, so you can use editors like Notepad++, Sublime, Visual Code, etc.

The code looks something like this if the theme has a single sidebar.

wwordpress-using-code-1

If your theme has multiple sidebars then it has a name within the function. The code looks like this when your theme has multiple sidebars.

wwordpress-using-code-2

So once, you find this kind of code then just simply remove it. Then save and here you go.

Conclusion

In conclusion, we recommend removing the sidebar from your WordPress site in order to maximize its functionality. Doing so will make it easier for users to find the information they’re looking for and improve the overall user experience. Not only will it make your site look better, but it’ll also save you some space on your website.

If you have any questions or would like help with this process, please don’t hesitate to reach out. Thank you for reading!

Testimonial

Very usefool plugin!
Also very good support knowledge.
Response email time, less than an hour.
Happy to buy this product!
Thanks!

ioanniskava

Woocommerce Single Product Page Customizer - Plugin

Great Support

This plugin is easy to use and does exactly what it says it will. I had one small issue and the support was terrific!

allegraportage

Woo Donations - Plugin

It works perfectly. Very useful!!!

Thanks Geek Code, the plugin works perfectly, and they were very kind to customize something for us in seconds !! Amazing!

atlasinternational

Woocommerce Single Product Page Customizer - Plugin

This a great tool for any business that needs to control their stock output. For most businesses the plugin is perfect as it is, I required a slight customisation and the team were imminent in their response time and production of the adaptation. Would recommend to anybody and will not hesitate to do business with the team again.

joseph

WooCommerce Schedule Stock Manager - Plugin

Great Functionality and Support

This plugin does not have any analogs and works great for stores that want to automate restock function in specific internals automatically

Maximus Kuzminas

WooCommerce Schedule Stock Manager - Plugin

The support was absolutely awesome – thanks a lot for the help!
The plugin works the way I expected!

sarielg

Woo Donation - Plugin

Great plugin for simple donations, works well out of the box.

It had a couple of small issues with my custom shop setup but the developer fixed them very quickly when I contacted him. It’s nice to see good support from a developer.

Happy to support this guy. Buy the license.

g-man-jones

Woo Donations - Plugin

Had an issues where the field was not properly rendering on our site. The support team already rolled out an update solving this before I even had a chance to ask.

hedgie9

Woo Donations - Plugin

Fantastic plugin!

I tried the free version of the plugin and could see that the premium version was much better. So I went and upgraded to the pro version as soon as possible.

mortenz

Woo Donations - Plugin

I needed the ability to inject OG tags into the header of individual pages. Other plugins have a lot of other functionality that I do not need.

This plugin is light and sleek and that is all it does. One thing, and it does it well.

I did have to install Classic editor alongside my existing GoodLayers setup. So far it has worked perfectly. I recommend it. I am using version 5.8.2

Tech support was very responsive, and solved my initial issue with the installation I mentioned. Thank you!

johnbroberts

Insert Script In Headers And Footers - Plugin

wanted some image under add to cart button. Done.

I wanted some image under add to cart button. Done. Nice.

wp-newyman

Woocommerce Single Product Page Customizer - Plugin

Easy and effective.

It does what it claims. I could easily added some html (text and images) before add to cart button.

lents3d

Woocommerce Single Product Page Customizer - Plugin