Do you need to take away the sidebar out of your WordPress web site?

The sidebar is a widget-ready field for your WordPress theme the place you’ll be able to display knowledge that isn’t a part of the primary web page content material. On the other hand, sidebars can also be distracting and absorb treasured area.

On this article, we can display you the best way to simply take away the sidebar in WordPress.

How to remove the sidebar in WordPress

Why Take away the Sidebar in WordPress?

Maximum loose and paid WordPress topics include more than one sidebars or widget-ready spaces.

You’ll be able to use sidebars to turn a listing of your contemporary posts, ads, e-mail listing signup paperwork, or some other content material that isn’t a part of the primary web page or put up.

At WPBeginner, we use a sidebar to advertise our social media pages and show our hottest posts.

An example of a WordPress sidebar

You’ll be able to simply upload pieces to a theme’s sidebar the usage of WordPress widgets.

In maximum WordPress topics, the sidebar appears to be like other relying on whether or not the customer is seeing your web site on a desktop or cellular instrument. Since smartphones and pills have smaller displays, WordPress in most cases strikes the sidebars to the ground of the display screen.

Relying on how your web site is about up, this may occasionally glance abnormal. Guests may also want to scroll to the very backside of the display screen to look the sidebar content material, which might have an effect on the consumer revel in and your conversion charges.

For more info, please see our information on the best way to view the cellular model of WordPress websites from desktop.

Even on a desktop, there’s an opportunity that the sidebar might conflict together with your design or distract from crucial content material, such because the web page’s name to motion.

With that being stated, let’s see how you’ll be able to take away the sidebar in WordPress. We’ll display you the best way to delete the sidebar from your whole web site, and the best way to conceal the sidebar on a selected web page or put up most effective.

Video Instructional

In the event you don’t just like the video or want extra directions, then proceed studying. If you would like leap directly to a selected way, then you’ll be able to use the hyperlinks underneath.

Approach 1. Taking away Sidebars The usage of Your WordPress Theme Settings

Lots of the highest WordPress topics include integrated settings to take away sidebars. Relying for your theme, you’ll be able to take away them site-wide, or just take away them from particular person posts or pages.

The best way to test whether or not your theme has those settings is to release the theme customizer. To your WordPress dashboard, pass to Look » Customise.

Launching the WordPress Customizer

Within the left-hand menu, search for a ‘Sidebar’ or identical environment.

Within the following symbol, you’ll be able to see the choices for the preferred Astra WordPress theme.

The theme settings for the Astra theme

In the event you do see a ‘Sidebar’ choice, then click on on it after which search for any settings that may take away the sidebar.

This may well be a dropdown menu, thumbnails appearing the other sidebar layouts, or another environment.

Removing the sidebar using the WordPress Customizer

In case your theme doesn’t have a ‘Sidebar’ choice, then you definitely might be able to take away the sidebar by means of deciding on the ‘Web page’ or identical phase.

As you’ll be able to see within the following symbol, Astra additionally has a ‘Web page’ environment.

Changing the page layout in the WordPress customizer

Inside of this environment, you’ll see other layouts together with a number of that take away the sidebar corresponding to ‘No sidebar’ and ‘Complete Width / Stretched.’

Merely click on at the other thumbnails to use those layouts on your web site.

Deleting the sidebar using the WordPress Customizer

Regardless of the way you take away the sidebar, don’t fail to remember to click on on ‘Submit.’

Some WordPress topics even have settings that can help you take away the sidebar from particular person posts and pages. This can also be helpful when designing customized pages, corresponding to a touchdown web page.

To look whether or not your theme comes with those settings, merely edit any web page or put up the place you need to cover the sidebar. Within the right-hand menu, make a choice both ‘Put up’ or ‘Web page’ after which search for a ‘Put up Settings’ or ‘Web page Settings’ choice.

The page settings for the Hestia theme

In case your theme has this phase, then click on to amplify. You’ll be able to now search for any settings that can help you take away the sidebar.

Within the following symbol, you’ll be able to see the put up settings for the preferred ThemeIsle Hestia theme.

The Post Settings section

Take into account that some WordPress topics would possibly not can help you simply take away the sidebar the usage of the customizer or web page editor. If that is so, then lift on studying and we’ll display you alternative ways to take away the sidebar in WordPress.

Approach 2. Taking away the Sidebar The usage of the Complete Web site Editor

In the event you’re the usage of a block theme, then you’ll be able to take away the sidebar the usage of Complete Web site Enhancing (FSE) and the block editor.

This technique is a handy guide a rough and simple manner to take away the sidebar throughout your whole web site, despite the fact that it received’t paintings with all topics.

To release the editor, pass to Look » Editor.

How to launch the FSE

You’ll be able to now click on to make a choice the sidebar.

Within the small toolbar that looks, click on at the dotted icon.

Customize the sidebar using the full site editor

You’ll be able to now delete the sidebar by means of clicking at the ‘Take away Column’ or identical environment.

While you’ve performed that, you’ll be able to pass forward and click on at the ‘Save’ button.

Removing the sidebar using the full site editor

Now, for those who discuss with the entrance finish of your WordPress web page, you’ll see that the toolbar has disappeared.

Approach 3. Taking away the WordPress Sidebar The usage of Code

This technique permits you to merely take away sidebars from each web page and put up for your WordPress web site.

It is important to edit your theme recordsdata, so it’s now not probably the most beginner-friendly choice. On the other hand, this technique must paintings for many WordPress topics, together with topics that don’t have a integrated method to conceal the sidebar.

Take into account that for those who edit your WordPress theme recordsdata without delay, then the ones adjustments will disappear whilst you replace the theme.

With that being stated, we propose growing a kid theme as this lets you replace your WordPress theme with out shedding customization.

First, you want to connect with your WordPress web site the usage of an FTP consumer corresponding to FileZilla, or you’ll be able to use the report supervisor of your WordPress website hosting cPanel. Or for those who’re a SiteGround consumer, your Web site Equipment dashboard.

If that is your first time the usage of FTP, then you’ll be able to see our entire information on how to connect with your web site the usage of FTP

While you’re attached, pass to /wp-content/topics/ and open the folder to your present WordPress theme.

The FileZilla FTP client

WordPress topics are made up of various templates, so it is important to edit all of the templates that come with a sidebar. To determine what recordsdata you want to edit, see our information to WordPress template hierarchy.

As an example, it’s possible you’ll want to edit index.php, web page.php, unmarried.php, archive.php, house.php, and so forth.

To edit a report, open it in a textual content editor corresponding to Notepad. Then, to find the road that appears like this:


In case your theme has more than one sidebars, then the code will glance fairly other and there could also be more than one items of sidebar code. Usually, this code can have a sidebar identify throughout the serve as, for instance:


You’ll be able to merely delete the road for the sidebar that you need to take away.

Now, save and add the report again on your WordPress website hosting account. Merely repeat the method described above for all of the template recordsdata that come with a sidebar.

While you’re completed, you’ll be able to discuss with your WordPress weblog to look the exchange in motion.

Chances are you’ll understand that despite the fact that the sidebars are long gone, your content material field remains to be the similar width, which leaves the sidebar field empty.

An empty space where the sidebar should be

This occurs when the theme has an outlined width for the content material field. After casting off the sidebar, you want to regulate the width of the content material field by means of including customized CSS on your WordPress theme.

To do that, pass to Theme » Customise. Within the left-hand menu, click on on Further CSS.

Adding CSS with the WordPress customizer

You’ll be able to now pass forward and paste the next code into the little code editor:

.content-area {
    width: 100%;
    margin: 0px;
    border: 0px;
    padding: 0px;
}

.content-area .web site {
margin:0px;
}

Don’t fail to remember to click on at the ‘Submit’ button. Now, for those who discuss with your web site you’ll see that the content material field now takes up 100% of the to be had area.

Approach 4. Taking away Sidebars From Person Pages in WordPress

Chances are you’ll most effective wish to take away the sidebar on sure pages whilst appearing the sidebar on different spaces of your web site. As an example, many internet sites don’t display the sidebar on their gross sales pages, as this will distract from the web page’s name to motion.

In the event you simply wish to take away the sidebar from a selected web page, then we propose the usage of a web page builder plugin like SeedProd.

SeedProd means that you can design any more or less web page the usage of a easy drag-and-drop editor. This makes it simple so as to add and take away the sidebar from any web page.

Within the SeedProd editor, merely click on to make a choice the sidebar you need to take away. Then, pass forward and click on at the trash can icon.

Removing a sidebar using SeedProd

If you wish to take away the sidebar from your whole web site, then you’ll be able to additionally use SeedProd to simply create a customized theme that doesn’t have any sidebars.

Approach 5. Taking away Sidebars from a Static Web page in WordPress

Some WordPress topics include more than one templates, together with full-width web page templates that don’t display the sidebar on each side of the content material. You’ll be able to use those templates to take away the sidebar from any web page.

To look whether or not your theme has a full-width template, merely open any web page. Within the right-hand menu, make a choice the ‘Web page’ tab and search for a ‘Template’ phase.

Changing the WordPress page template

In the event you to find this phase, then click on on it to look all of the choices to be had.

You’ll be able to now open the dropdown menu and search for a full-width template.

How to remove the sidebar with a full width template

In case your theme doesn’t have a full-width template, then you’ll be able to create one manually.

Open a undeniable textual content editor like Notepad and paste the next code in a clean report:


You’ll be able to now save this report with the identify full-width.php.

After that, attach on your web site the usage of an FTP consumer or the report supervisor equipped by means of your WordPress website hosting supplier.

Then, pass to /wp-content/topics/ and open the folder to your present theme. Inside of this folder, to find the web page.php report and open it in any textual content editor.

The FileZilla FTP client

Now, reproduction the entirety that looks after the line and paste it into your full-width.php report.

While you’ve performed that, to find and delete the road that appears like this:


You’ll be able to now save your adjustments and add the full-width.php report on your theme folder.

You’ll be able to now use this template with any web page. Merely open the ‘Template’ dropdown within the right-hand menu and make a choice your full-width template.

A full-width template

Be aware: In case you have a web page open within the content material editor whilst growing the full-width.php report, you’ll have to refresh the editor for the brand new template to seem within the dropdown menu.

For extra main points, see our information on the best way to create a complete width web page template in WordPress.

Approach 6. Take away the Sidebar from a Unmarried Put up in WordPress

Similar to pages, WordPress additionally comes with integrated beef up for put up templates.

If you wish to take away the sidebar from sure unmarried posts, then you’ll be able to create a customized single-post template. It’s very similar to making a full-width web page template.

First, you’ll want to create a brand new template report the usage of a textual content editor like Notepad. While you’ve performed that, you’ll be able to reproduction and paste the next code in that report:


This code creates a brand new template known as ‘Featured Article’ and makes it to be had for any web page or put up, plus any product put up varieties for your on-line retailer.

To your customized unmarried put up template, you merely want to take away the sidebar a part of the code. For more info, you’ll be able to practice the stairs defined in our information on the best way to create customized unmarried put up templates in WordPress.

While you’re performed, save this report as full-width.php.

Subsequent, you want to add the report on your present WordPress theme folder the usage of an FTP consumer or report supervisor.

While you’ve performed that, you’ll be able to follow this template to any put up. Within the right-hand menu, merely click on to amplify the ‘Templates’ phase after which make a choice the full-width template.

How to create a full-width template in WordPress

We are hoping this newsletter helped you discover ways to simply take away the sidebar for your WordPress theme. You might also wish to see our step by step information on the best way to spice up WordPress velocity and function, and our comparability of the most efficient e-mail advertising and marketing products and services to develop your site visitors & gross sales.

In the event you preferred this newsletter, then please subscribe to our YouTube Channel for WordPress video tutorials. You’ll be able to additionally to find us on Twitter and Fb.

The put up Methods to Take away the Sidebar in WordPress first gave the impression on WPBeginner.

WordPress Maintenance

[ continue ]