How to make a sidebar line for a blog page in Divi Page Builder to match the default post pages

Sep 8, 2018 | Blog, CSS tweaks, Divi Theme, Sidebar

Navigate to your relevant blog page page editor and clone section.
clone divi section

Right-click on the section settings icon (3 horizontal lines) and disable the new section on tablet and mobile. (This will be your desktop version with the sidebar line. It may be a good idea to “Rename” the section – or modules within the section – for reference.)
right click and disable divi section

Red for disabled, blue for enabled:

new section enabled on desktop only

Now disable your old section on desktop. (This will be your tablet/mobile version, which won’t have a sidebar line, as sidebar items are stacked vertically under rest of page.)

old section disabled on desktop

Edit section settings of NEW section (enabled on desktop only).
edit section settings

In the section’s “Design” tab: set the top and bottom padding and margin to 0, and save.
section design set to tab zero top and bottom padding and margin

Edit row settings (within same new section).
edit row settings

In the row’s “Design” tab: set “Equalize Column Heights” to “YES”, and set top and bottom padding and margin to 0.

design tab equalise column height and set top and bottom padding and margin to zero

Still in the “Design” tab, scroll down and set your column top and bottom padding to match your theme defaults (you can edit theme defaults in Divi>Theme Customizer, General Settings>Layout Settings, Section Height & Row Height) or set to how you want this particular page to look.

design tab column padding same as default or how you want it to look on this page

In the row’s “Advanced” tab: give the relevant column (which houses the sidebar) a CSS class, such as:


CSS class to relevant column

Then save & exit.

And “Update” page to save changes.


Finally, apply the following CSS to website (adjust to right border & padding if you have a left sidebar, etc.):

/* Add sidebar line to Page Builder blog pages */

.custom-sidebar-separator.et_pb_column {
border-left: 1px solid #E5E5E5;
padding-left: 30px;


Where to paste the CSS snippet

Navigate to Divi>Theme Options and at the bottom of the default “General” tab, paste the CSS snippet into the “Custom CSS” box and save changes.


Child Themes

We recommend using a child theme. It is your insurance against losing your custom work in updates. Click here for instructions on adding a basic Divi child theme with a stylesheet (for custom CSS). Click here to learn more about child themes and getting the most out of the Divi theme.

Want more module options for your Divi website?

Check out our Custom Modules for Divi
Browse Custom Modules