wordpress divi sidebar 01If you want to color your sidebar or add any background, or if you want to set the width, you will not find an option in the DIVI 2.5 theme options, and also via CSS it is a bit tricky, because the distances structure of the sidebar and content area is complicated. I found some solutions in the net that didn’t work, and I guess they were written for version 2.3 when the theme had a different structure. Starting from an answer in the Elegant Themes forum, I investigated and tweaked around to make it work in DIVI 2.5. Here is my solution so far, working up to 2.7 as I’ve tested now and extended the code to also look nice below 980px.

NOTE: This code was created for standards posts with a standard right sidebar. When I find more time I want to adapt it to work with left and right sidebars in all scenarios. If you adapt it before me and want to share, let us know your solution in the comments.

 

Update 2015-Nov-22: Adapting the DIVI Page Builder Sidebar to the Standard Page Sidebar

wordpress divi sidebar 02I also needed the Standard Page Sidebar to display on Page Builder Pages, where the sidebar of the standard pages can not be activated, but with the following CSS Tweaks I managed to give standard pages and builder pages the same look by using a speciality section. The downside is that the DIVI Page Builder can not be fully used as normal and I would still prefer a solution in which the standard sidebar is integrated via a Child-Theme, so the full Page Builder will be accessible but just displaying in the content area, as it would be integrated as a plugin. I keep on tweaking.

Here’s the code to achieve it, which needs to sit as well inside the @media (min-width: 981px) media-query.

wordpress divi sidebar 03

UPDATE 2016-Mar-17: Fully solved without any limited tricks, read here: DIVI: Regular Sidebar on Page Builder Pages