{"id":12868,"date":"2019-08-08T15:32:34","date_gmt":"2019-08-08T13:32:34","guid":{"rendered":"https:\/\/www.markhendriksen.com\/?p=12868"},"modified":"2025-04-24T06:39:56","modified_gmt":"2025-04-24T04:39:56","slug":"how-to-remove-the-divi-sidebar","status":"publish","type":"post","link":"https:\/\/www.markhendriksen.com\/how-to-remove-the-divi-sidebar\/","title":{"rendered":"How to Remove the Divi Sidebar"},"content":{"rendered":"\n<p>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.<\/p>\n\n\n\n<p>Let\u2019s get started with removing the sidebar globally.<\/p>\n\n\n\n<h2>Remove sidebar globally<\/h2>\n\n\n\n<p>To remove the sidebar on all your pages you can use this CSS snippet.<\/p>\n\n\n\n<p>The first snippet removes the thin vertical line.<\/p>\n\n\n\n<p>The second snippet removes the sidebar<\/p>\n\n\n\n<p>The third snippet makes your content 100% width (the sidebar has been removed so you can use all the space).<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/* Remove sidebar *\/\n#sidebar {\n\tdisplay:none;\n}\n\n\/* Remove thin line *\/\n#main-content .container:before {\n\tbackground: none;\n}\n\n\/* Make content 100% width *\/\n@media (min-width: 981px){\n#left-area {\n\twidth: 100%;\n\tpadding-right: 0px !important;\n}}<\/code><\/pre>\n\n\n\n<p>Place this snippet in Divi &gt; Theme Options &gt; CSS or in your <a href=\"https:\/\/www.markhendriksen.com\/divi-child-theme-essential-guide\/\">Divi child theme<\/a> CSS style sheet.<\/p>\n\n\n\n<h2>Remove sidebar on post pages<\/h2>\n\n\n\n<p>To remove the sidebar only on your blog posts you can use the following CSS.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/* Remove sidebar *\/\n.single #sidebar {\n\tdisplay:none;\n}\n\n\/* Remove thin line *\/\n.single #main-content .container:before {\n\tbackground: none;\n}\n\n\/* Make content 100% width *\/\n@media (min-width: 981px){\n.single #left-area {\n\twidth: 100%;\n\tpadding-right: 0px !important;\n}}<\/code><\/pre>\n\n\n\n<h2>Remove sidebar on category pages<\/h2>\n\n\n\n<p>To remove the sidebar only on your category posts you can use the following CSS.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/* Remove sidebar *\/\n.category #sidebar {\n\tdisplay:none;\n}\n\n\/* Remove thin line *\/\n.category #main-content .container:before {\n\tbackground: none;\n}\n\n\/* Make content 100% width *\/\n@media (min-width: 981px){\n.category #left-area {\n\twidth: 100%;\n\tpadding-right: 0px !important;\n}}<\/code><\/pre>\n\n\n\n<h2>Remove sidebar on archive pages<\/h2>\n\n\n\n<p>To remove the sidebar only on your archive pages you can use the following CSS.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/* Remove sidebar *\/\n.archive #sidebar {\n\tdisplay:none;\n}\n\n\/* Remove thin line *\/\n.archive #main-content .container:before {\n\tbackground: none;\n}\n\n\/* Make content 100% width *\/\n@media (min-width: 981px){\n.archive #left-area {\n\twidth: 100%;\n\tpadding-right: 0px !important;\n}}<\/code><\/pre>\n\n\n\n<h2>Remove sidebar on 404 page<\/h2>\n\n\n\n<p>To remove the sidebar only on your 404 page you can use the following CSS.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/* Remove sidebar *\/\n.error404 #sidebar {\n\tdisplay:none;\n}\n\n\/* Remove thin line *\/\n.error404 #main-content .container:before {\n\tbackground: none;\n}\n\n\/* Make content 100% width *\/\n@media (min-width: 981px){\n.error404 #left-area {\n\twidth: 100%;\n\tpadding-right: 0px !important;\n}}<\/code><\/pre>\n\n\n\n<p>And that is the end of this tutorial. I also have a tutorial how you can add any&nbsp;<a href=\"https:\/\/www.markhendriksen.com\/how-to-place-any-divi-module-in-the-sidebar-widgets-area\/\">Divi module in the sidebar<\/a>. Check that one out if you want to make a special sidebar.<\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":12876,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[],"class_list":["post-12868","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-divi-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.1.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Remove the Divi Sidebar | MarkHendriksen.com<\/title>\n<meta name=\"description\" content=\"In this tutorial I will be explaining how you can remove the sidebar in Divi. On each page such as the category and archive pages but also globally.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.markhendriksen.com\/how-to-remove-the-divi-sidebar\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Remove the Divi Sidebar | MarkHendriksen.com\" \/>\n<meta property=\"og:description\" content=\"In this tutorial I will be explaining how you can remove the sidebar in Divi. On each page such as the category and archive pages but also globally.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.markhendriksen.com\/how-to-remove-the-divi-sidebar\/\" \/>\n<meta property=\"og:site_name\" content=\"Mark Hendriksen\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/madebymarkhendriksen\" \/>\n<meta property=\"article:published_time\" content=\"2019-08-08T13:32:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-24T04:39:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2019\/08\/How-to-remove-the-Divi-sidebar.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"720\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Mark Hendriksen\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mark Hendriksen\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.markhendriksen.com\/how-to-remove-the-divi-sidebar\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.markhendriksen.com\/how-to-remove-the-divi-sidebar\/\"},\"author\":{\"name\":\"Mark Hendriksen\",\"@id\":\"https:\/\/www.markhendriksen.com\/#\/schema\/person\/d40c4ac37512479c71b48ad2879fb765\"},\"headline\":\"How to Remove the Divi Sidebar\",\"datePublished\":\"2019-08-08T13:32:34+00:00\",\"dateModified\":\"2025-04-24T04:39:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.markhendriksen.com\/how-to-remove-the-divi-sidebar\/\"},\"wordCount\":234,\"commentCount\":4,\"publisher\":{\"@id\":\"https:\/\/www.markhendriksen.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.markhendriksen.com\/how-to-remove-the-divi-sidebar\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2019\/08\/How-to-remove-the-Divi-sidebar.jpg\",\"articleSection\":[\"Divi tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.markhendriksen.com\/how-to-remove-the-divi-sidebar\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.markhendriksen.com\/how-to-remove-the-divi-sidebar\/\",\"url\":\"https:\/\/www.markhendriksen.com\/how-to-remove-the-divi-sidebar\/\",\"name\":\"How to Remove the Divi Sidebar | MarkHendriksen.com\",\"isPartOf\":{\"@id\":\"https:\/\/www.markhendriksen.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.markhendriksen.com\/how-to-remove-the-divi-sidebar\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.markhendriksen.com\/how-to-remove-the-divi-sidebar\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2019\/08\/How-to-remove-the-Divi-sidebar.jpg\",\"datePublished\":\"2019-08-08T13:32:34+00:00\",\"dateModified\":\"2025-04-24T04:39:56+00:00\",\"description\":\"In this tutorial I will be explaining how you can remove the sidebar in Divi. On each page such as the category and archive pages but also globally.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.markhendriksen.com\/how-to-remove-the-divi-sidebar\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.markhendriksen.com\/how-to-remove-the-divi-sidebar\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.markhendriksen.com\/how-to-remove-the-divi-sidebar\/#primaryimage\",\"url\":\"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2019\/08\/How-to-remove-the-Divi-sidebar.jpg\",\"contentUrl\":\"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2019\/08\/How-to-remove-the-Divi-sidebar.jpg\",\"width\":720,\"height\":400,\"caption\":\"How to remove the Divi sidebar\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.markhendriksen.com\/how-to-remove-the-divi-sidebar\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.markhendriksen.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Divi tutorials\",\"item\":\"https:\/\/www.markhendriksen.com\/divi-tutorials\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Remove the Divi Sidebar\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.markhendriksen.com\/#website\",\"url\":\"https:\/\/www.markhendriksen.com\/\",\"name\":\"Mark Hendriksen\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.markhendriksen.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.markhendriksen.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.markhendriksen.com\/#organization\",\"name\":\"Mark Hendriksen\",\"url\":\"https:\/\/www.markhendriksen.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.markhendriksen.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/01\/Mark-Hendriksen-Logo.png\",\"contentUrl\":\"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/01\/Mark-Hendriksen-Logo.png\",\"width\":354,\"height\":40,\"caption\":\"Mark Hendriksen\"},\"image\":{\"@id\":\"https:\/\/www.markhendriksen.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/madebymarkhendriksen\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.markhendriksen.com\/#\/schema\/person\/d40c4ac37512479c71b48ad2879fb765\",\"name\":\"Mark Hendriksen\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.markhendriksen.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1416c89ed4da57b902960a21b7fa25cb91558d39eff48c8b5017bd4c9bcc59a9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1416c89ed4da57b902960a21b7fa25cb91558d39eff48c8b5017bd4c9bcc59a9?s=96&d=mm&r=g\",\"caption\":\"Mark Hendriksen\"},\"url\":\"https:\/\/www.markhendriksen.com\/author\/twopixels\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Remove the Divi Sidebar | MarkHendriksen.com","description":"In this tutorial I will be explaining how you can remove the sidebar in Divi. On each page such as the category and archive pages but also globally.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.markhendriksen.com\/how-to-remove-the-divi-sidebar\/","og_locale":"en_US","og_type":"article","og_title":"How to Remove the Divi Sidebar | MarkHendriksen.com","og_description":"In this tutorial I will be explaining how you can remove the sidebar in Divi. On each page such as the category and archive pages but also globally.","og_url":"https:\/\/www.markhendriksen.com\/how-to-remove-the-divi-sidebar\/","og_site_name":"Mark Hendriksen","article_publisher":"https:\/\/www.facebook.com\/madebymarkhendriksen","article_published_time":"2019-08-08T13:32:34+00:00","article_modified_time":"2025-04-24T04:39:56+00:00","og_image":[{"width":720,"height":400,"url":"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2019\/08\/How-to-remove-the-Divi-sidebar.jpg","type":"image\/jpeg"}],"author":"Mark Hendriksen","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Mark Hendriksen","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.markhendriksen.com\/how-to-remove-the-divi-sidebar\/#article","isPartOf":{"@id":"https:\/\/www.markhendriksen.com\/how-to-remove-the-divi-sidebar\/"},"author":{"name":"Mark Hendriksen","@id":"https:\/\/www.markhendriksen.com\/#\/schema\/person\/d40c4ac37512479c71b48ad2879fb765"},"headline":"How to Remove the Divi Sidebar","datePublished":"2019-08-08T13:32:34+00:00","dateModified":"2025-04-24T04:39:56+00:00","mainEntityOfPage":{"@id":"https:\/\/www.markhendriksen.com\/how-to-remove-the-divi-sidebar\/"},"wordCount":234,"commentCount":4,"publisher":{"@id":"https:\/\/www.markhendriksen.com\/#organization"},"image":{"@id":"https:\/\/www.markhendriksen.com\/how-to-remove-the-divi-sidebar\/#primaryimage"},"thumbnailUrl":"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2019\/08\/How-to-remove-the-Divi-sidebar.jpg","articleSection":["Divi tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.markhendriksen.com\/how-to-remove-the-divi-sidebar\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.markhendriksen.com\/how-to-remove-the-divi-sidebar\/","url":"https:\/\/www.markhendriksen.com\/how-to-remove-the-divi-sidebar\/","name":"How to Remove the Divi Sidebar | MarkHendriksen.com","isPartOf":{"@id":"https:\/\/www.markhendriksen.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.markhendriksen.com\/how-to-remove-the-divi-sidebar\/#primaryimage"},"image":{"@id":"https:\/\/www.markhendriksen.com\/how-to-remove-the-divi-sidebar\/#primaryimage"},"thumbnailUrl":"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2019\/08\/How-to-remove-the-Divi-sidebar.jpg","datePublished":"2019-08-08T13:32:34+00:00","dateModified":"2025-04-24T04:39:56+00:00","description":"In this tutorial I will be explaining how you can remove the sidebar in Divi. On each page such as the category and archive pages but also globally.","breadcrumb":{"@id":"https:\/\/www.markhendriksen.com\/how-to-remove-the-divi-sidebar\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.markhendriksen.com\/how-to-remove-the-divi-sidebar\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.markhendriksen.com\/how-to-remove-the-divi-sidebar\/#primaryimage","url":"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2019\/08\/How-to-remove-the-Divi-sidebar.jpg","contentUrl":"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2019\/08\/How-to-remove-the-Divi-sidebar.jpg","width":720,"height":400,"caption":"How to remove the Divi sidebar"},{"@type":"BreadcrumbList","@id":"https:\/\/www.markhendriksen.com\/how-to-remove-the-divi-sidebar\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.markhendriksen.com\/"},{"@type":"ListItem","position":2,"name":"Divi tutorials","item":"https:\/\/www.markhendriksen.com\/divi-tutorials\/"},{"@type":"ListItem","position":3,"name":"How to Remove the Divi Sidebar"}]},{"@type":"WebSite","@id":"https:\/\/www.markhendriksen.com\/#website","url":"https:\/\/www.markhendriksen.com\/","name":"Mark Hendriksen","description":"","publisher":{"@id":"https:\/\/www.markhendriksen.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.markhendriksen.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.markhendriksen.com\/#organization","name":"Mark Hendriksen","url":"https:\/\/www.markhendriksen.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.markhendriksen.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/01\/Mark-Hendriksen-Logo.png","contentUrl":"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/01\/Mark-Hendriksen-Logo.png","width":354,"height":40,"caption":"Mark Hendriksen"},"image":{"@id":"https:\/\/www.markhendriksen.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/madebymarkhendriksen"]},{"@type":"Person","@id":"https:\/\/www.markhendriksen.com\/#\/schema\/person\/d40c4ac37512479c71b48ad2879fb765","name":"Mark Hendriksen","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.markhendriksen.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1416c89ed4da57b902960a21b7fa25cb91558d39eff48c8b5017bd4c9bcc59a9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1416c89ed4da57b902960a21b7fa25cb91558d39eff48c8b5017bd4c9bcc59a9?s=96&d=mm&r=g","caption":"Mark Hendriksen"},"url":"https:\/\/www.markhendriksen.com\/author\/twopixels\/"}]}},"_links":{"self":[{"href":"https:\/\/www.markhendriksen.com\/wp-json\/wp\/v2\/posts\/12868","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.markhendriksen.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.markhendriksen.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.markhendriksen.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.markhendriksen.com\/wp-json\/wp\/v2\/comments?post=12868"}],"version-history":[{"count":3,"href":"https:\/\/www.markhendriksen.com\/wp-json\/wp\/v2\/posts\/12868\/revisions"}],"predecessor-version":[{"id":35666,"href":"https:\/\/www.markhendriksen.com\/wp-json\/wp\/v2\/posts\/12868\/revisions\/35666"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.markhendriksen.com\/wp-json\/wp\/v2\/media\/12876"}],"wp:attachment":[{"href":"https:\/\/www.markhendriksen.com\/wp-json\/wp\/v2\/media?parent=12868"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.markhendriksen.com\/wp-json\/wp\/v2\/categories?post=12868"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.markhendriksen.com\/wp-json\/wp\/v2\/tags?post=12868"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}