Manually:
1. Log into your WordPress dashboard.
2. Go to Appearance > Editor.
3. On the right side of the page, select the page or post you want to remove the sidebar from.
4. Look for the code that says “sidebar” or “sidebar-1”.
5. Delete the code and save the changes.
Plugin Method:
1. Log into your WordPress dashboard.
2. Go to Plugins > Add New.
3. Search for “Remove Sidebar” and install the plugin.
4. Activate the plugin.
5. Go to Settings > Remove Sidebar.
6. Select the page or post you want to remove the sidebar from.
7. Click “Save Changes”.
WordPress Sidebar is a slot for widgets on the left, right, or bottom of your theme. Although it is very useful, sometimes you will need to remove the sidebar in WordPress because you want to have a widget-free page/post.
Most modern themes have specific options on their settings panel to remove the sidebar. However, if you don’t have access to one, this WordPress tutorial is perfect for you. We will give you 3 actionable tips on how to remove the sidebar from any WordPress page/post.
How to Remove WordPress Sidebar
1. Go to the WordPress Dashboard and click on Appearance > Customize
2. Click on the “Widgets” tab.
3. Drag and drop any widgets you want to remove from the sidebar
4. Locate the sidebar.php file in your theme’s directory
5. Delete the code that generates the sidebar or comment it out with HTML comment tags
6. Use a plugin like “Remove Widget” or “Disable Widgets” to disable the sidebar altogether
The first method will remove sidebars from your theme altogether. In order to do this, you need to edit WordPress theme files. We recommend you to make a backup of your WordPress site and use the child theme; otherwise, you will lose all the changes you made. This is because a child theme inherits all the functionality, features, and code from the parent theme without affecting the parent theme itself.
Therefore, any changes made in your child theme will not overwrite the original. Also, you will not lose any modifications after the theme update.
Once you have set up your child theme, you need to access your theme files. You can either use the help of FTP clients like FileZilla, open it using the Hostinger File Manager, or go to the WordPress dashboard > Appearance > Editor. In this tutorial, we will use the first option.
Please also be aware that your theme consists of many templates. Therefore, you will need to copy all templates you want to edit from parent to child theme and then edit every template with the sidebar in it. For example, you may edit home.php, index.php, single.php, archive.php, page.php and so on.
To find the template files, go to /wp-content/themes/your-theme folder. Pick one template you’d like to edit and copy them to your child theme folder. Then open template file and find this specific code:
<?php get_sidebar(); ?>
Since the code’s function is to call up the sidebar, you have to erase the code to remove your sidebar.
In addition, there is a possibility that your themes have multiple sidebars. In this case, you need to find codes that have a “sidebar” name in them. The code snippet below calls footer widget:
<?php get_sidebar('footer-widget-area'); ?>
Deleting these types of codes will remove multiple sidebars in your template.
After all the steps are done and saved, go to your WordPress website. You will find that the sidebars are already removed. However, you still don’t have the full-width images and texts. You can see that the previous sidebar spot is replaced by a blank area. It happens because your theme has a default setting for the content area width. You can simply add WordPress custom CSS to fix the width.
Your WordPress website is made of multiple pages and posts. Sometimes you may only need to remove the sidebar on a specific page and post without affecting other pages. The process is pretty similar to removing the sidebar completely from anywhere in your WordPress website. The difference is, you need to create a new template by copying the existing one. To make it clearer, let’s take a closer look.
Many WordPress themes have provided the default full-width template for a static page. Therefore, removing the sidebar from a static page template is fairly easy. You only need to go to the Page Attributes meta box and choose Full Width in the Template selection.
If this option doesn’t appear, it means that the full-width page template is not provided by your WordPress theme. Therefore, you will need to create a new full width template file. In order to do so, take the steps below:
- Use any text editor and create a new file. Name this file as full-width.php and save it on your desktop.
- Connect your hosting account using an FTP client
- Find /wp-content/themes/your-theme folder
- Pick page.php file and edit it.
- Copy the all the code from this file and paste in your full-width.php file.
- After openting <?php tag add this text:
/* Template Name: Full Width Template */
- Still in full-width.php file, you need to find this line <?php get_sidebar(); ?>
- The stated code generates the sidebar in your page. Therefore, simply remove it.
- Save the changes.
- Upload full-width.php file to your child theme folder via FTP client
- Now, on WordPress, you will have the full-width page template option.
If a WordPress static page often comes with a full-width template by default, most WordPress themes display sidebars on a blog page. In order to remove sidebars only from blog pages, follow these steps below:
- From your WordPress dashboard, go to Settings -> Reading
- Under Reading, find the name of your blog page. Let’s say the name is “Tutorial”
- Now, go to Pages -> All Pages.
- Find your blog page, or “Tutorial” in this case.
- Find the Page Attributes box and choose Full-Width in the Template section.
- If you can’t find the Full-Width option, then you have to make it manually.
- Repeat the procedure to create the full-width page template from the section above.
Sometimes, you may only need to remove sidebar on one specific blog post page. If your WordPress theme has provided you with the full-width post template, you don’t have to deal with coding. Then, you just need to follow these steps:
- Make a new post and go to Post Attributes meta box.
- Choose the Full-Width template to remove sidebar.
- If you can’t find it, you have to make a custom page template by yourself.
The steps are quite similar to creating a custom WordPress page template for a static page. The only difference is that you will need to copy and edit contents of single.php template file.
If you don’t want to deal with code, you can also manage your sidebar using a plugin. We recommend using Fullwidth Templates for Any Theme & Page Builder, one of the best WordPress plugins to manage sidebars.
Just like the name suggests, this plugin works for any theme and page builder you might use for your WordPress site. Moreover, using it is extremely easy. You only need 3 clicks to create a fullwidth template.
Once you install and activate the plugin, you will have access to these 3 basic settings.
1. Blank Template
The first setting will remove everything from your page: header, footer, sidebar, comments. All you have left is a blank page which gives you a full control over your layout. This layout is suitable for creating a landing page.
2. Full-Width Template
The second setting will eliminate the sidebar in WordPress, page title, and comments from the layout. Fortunately, there is no empty area left. Your content area will be automatically stretched into full width to fill the layout. The second setting is ideal if you are using a page builder.
3. No Sidebar Template
The third setting will only remove sidebar from your layout. You can choose this if your WordPress theme doesn’t offer the No Sidebar option. The other elements and layout styling will not be affected.
Conclusion
Although a sidebar in WordPress is helpful for placing widgets, sometimes you need to remove it from your template to get a better website appearance. We have provided you with 3 actionable guides, kindly choose the most appropriate one(s) for your needs.
Do you have any additional method to remove the WordPress sidebar? Don’t hesitate to share your experience with us!
How to Remove WordPress Sidebar from Any Page/Post (Manually + Plugin Method)
WordPress sidebars are a great way to add extra content to your website. They can be used to display widgets, menus, and other elements that can help enhance the user experience. However, sometimes you may want to remove the sidebar from a specific page or post. This can be done manually or with the help of a plugin.
Manually Removing the WordPress Sidebar
The first step to removing the WordPress sidebar is to access the page or post you want to edit. Once you are in the editor, you will need to click on the “Screen Options” tab in the top right corner. This will open up a menu with several options. You will need to check the box next to “Discussion” and then click “Save Changes”.
Once you have done this, you will need to scroll down to the bottom of the page and look for the “Page Attributes” section. Here, you will need to select the “No Sidebar” option from the “Template” dropdown menu. Once you have done this, you can click “Update” to save your changes.
Using a Plugin to Remove the WordPress Sidebar
If you don’t want to manually remove the WordPress sidebar, you can also use a plugin to do it for you. There are several plugins available that can help you remove the sidebar from any page or post. One of the most popular plugins is the “Disable Sidebars” plugin. This plugin allows you to easily disable the sidebar on any page or post with just a few clicks.
Once you have installed and activated the plugin, you will need to go to the “Settings” page and click on the “Disable Sidebars” tab. Here, you will be able to select which pages or posts you want to disable the sidebar on. Once you have made your selection, you can click “Save Changes” and the sidebar will be removed from the selected pages or posts.
Removing the WordPress sidebar from any page or post can be done manually or with the help of a plugin. Both methods are easy to use and can help you customize your website to better suit your needs.