Let’s look at the steps of how sidebars can be removed in WordPress:
1. Delete all widgets and then remove the sidebar
- In this step, first, go to Appearance>widgets
- In the sidebar widget area, Identify the sidebar which you don’t want to display
- For deleting widget in your sidebar widget area, click on the widget section and it expands.
- You can see a Delete button at the bottom of the widget section
- Press Delete and that’s it.
2. Remove Sidebar Using a Plugin
WordPress plugins make it simple to add features to your website. You can install a plugin to remove the sidebar on your website, too. Follow the steps below.
- Go to Plugins > Add New on the left side of your dashboard.
- Search for the Widget Disable plugin.
- Install and activate the plugin.
- Go to Appearance > Disable Widgets.
- Under the Sidebar Widgets tab, click Select all to disable the sidebar widgets from your website.
- Click Save Changes.
3. Remove Sidebar in FTP
You can remove the sidebar using an FTP client by editing the code in your theme. But in this case, it’s highly recommended that you backup your site just in case something goes wrong. Consider using a child theme, so you won’t be making permanent changes to the theme itself.
- Connect to your FTP.
- Open the folder: /wp-content/themes/your-current-theme/
- You should see all the template files. (For example, home.php, index.php, single.php, archive.php, and page.php)
- To remove the sidebar, delete this line of code from each template:
<? php get_sidebar ('sidebar-name'); ?>
- It’s possible that your WordPress theme has multiple sidebars. So, look for a similar code and delete it:
<?php get_sidebar('footer-widget-area'); ?>
- Click Save after you finish deleting all the code from each template.
-
You can view the changes on your website now. If you’re using a caching plugin, be sure to deactivate it to see your changes. You can always reactivate the caching plugin later.
- Go to Pages on the left side of your dashboard.
- Select the desired static page.
- On the right-hand side, find Page Attributes.
- Under Template, select Full Width.
- Click the blue Publish or Update button.