The code snippet below calls footer widget: ĭeleting these types of codes will remove multiple sidebars in your template.Īfter all the steps are done and saved, go to your website. In this case, you need to find codes that have “sidebar” name in them. In addition, there is a possibility that your themes have multiple sidebars. Since the code’s function is to call up the sidebar, you have to erase the code to remove your sidebar. Then open template file and find this specific code: Pick one template you’d like to edit and copy them to your child theme folder. To find the template files, go to /wp-content/themes/your-theme folder. php, single.php, archive.php, page.php and so on. For example, you may edit home.php, index. Therefore, you will need to copy all templates you want to edit from parent to your child theme and then edit every template with the sidebar in it. Please also be aware that your theme consists of many templates. In this tutorial, we will use the first option.
You can either use the help of FTP clients like FileZilla, open it using Hostinger files manager, or go to the WordPress dashboard > Appearance > Editor. Once you have set up your child theme, you need to access your theme files. Also, you will not lose any modifications after theme update. Therefore, any changes made in your child theme will not overwrite the original. This is because a child theme inherits all the functionality, features, and code from the parent theme without affecting the parent theme itself. 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. In order to do this, you need to edit your theme files. The first method will remove the sidebar from your theme altogether.
We will give you 3 actionable tips on how to remove the sidebar from any WordPress page/post.ĭownload WordPress Cheat Sheet How to Remove WordPress Sidebar Completely However, if you don’t have access to one, this tutorial is perfect for you. Most modern themes have specific options on their settings panel to remove the sidebar. 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. WordPress Sidebar is a slot for widgets on the left, right, or bottom of your theme.