[Limited Time Offer] Get 40% off ALL ACCESS MEMBERSHIP before it’s gone!👉
mark Hendriksen logo

How to Remove the Divi Sidebar

by Mark Hendriksen | Aug 8, 2019 | Divi tutorials | 4 comments

HomeDivi tutorialsHow to Remove the Divi Sidebar

Mark Hendriksen

I am the founder here at MarkHendriksen.com a blog website for Web design, WordPress, and popular page builders.

On the default pages like the post, category, archive and 404 pages there is always a sidebar. In this tutorial I will be explaining how you can remove the sidebar globally but also on each individual page.

Let’s get started with removing the sidebar globally.

Remove sidebar globally

To remove the sidebar on all your pages you can use this CSS snippet.

The first snippet removes the thin vertical line.

The second snippet removes the sidebar

The third snippet makes your content 100% width (the sidebar has been removed so you can use all the space).

/* Remove sidebar */
#sidebar {
	display:none;
}

/* Remove thin line */
#main-content .container:before {
	background: none;
}

/* Make content 100% width */
@media (min-width: 981px){
#left-area {
	width: 100%;
	padding-right: 0px !important;
}}

Place this snippet in Divi > Theme Options > CSS or in your Divi child theme CSS style sheet.

Remove sidebar on post pages

To remove the sidebar only on your blog posts you can use the following CSS.

/* Remove sidebar */
.single #sidebar {
	display:none;
}

/* Remove thin line */
.single #main-content .container:before {
	background: none;
}

/* Make content 100% width */
@media (min-width: 981px){
.single #left-area {
	width: 100%;
	padding-right: 0px !important;
}}

Remove sidebar on category pages

To remove the sidebar only on your category posts you can use the following CSS.

/* Remove sidebar */
.category #sidebar {
	display:none;
}

/* Remove thin line */
.category #main-content .container:before {
	background: none;
}

/* Make content 100% width */
@media (min-width: 981px){
.category #left-area {
	width: 100%;
	padding-right: 0px !important;
}}

Remove sidebar on archive pages

To remove the sidebar only on your archive pages you can use the following CSS.

/* Remove sidebar */
.archive #sidebar {
	display:none;
}

/* Remove thin line */
.archive #main-content .container:before {
	background: none;
}

/* Make content 100% width */
@media (min-width: 981px){
.archive #left-area {
	width: 100%;
	padding-right: 0px !important;
}}

Remove sidebar on 404 page

To remove the sidebar only on your 404 page you can use the following CSS.

/* Remove sidebar */
.error404 #sidebar {
	display:none;
}

/* Remove thin line */
.error404 #main-content .container:before {
	background: none;
}

/* Make content 100% width */
@media (min-width: 981px){
.error404 #left-area {
	width: 100%;
	padding-right: 0px !important;
}}

And that is the end of this tutorial. I also have a tutorial how you can add any Divi module in the sidebar. Check that one out if you want to make a special sidebar.

4 Comments

  1. Michele

    Thank you for this tutorial!!! I created a page outside of Divi, and it automatically put in the sidebar- like it’s a post. It’s been a while since I created a single page like this, but when I did the sidebar was not there. This CSS fixed it.

    Reply
  2. Scott

    Really great, thank you

    Reply
    • Mark Hendriksen

      Your welcome Scott

      Reply
  3. Tim

    Thanks so much!

    Reply

Submit a Comment

Your email address will not be published. Required fields are marked *