Set the Post Content Module Background

Written by Dan Mossop

The Divi theme Post Content module introduced by Divi 4.0 is a placeholder for the main content layout, within a theme builder template. It comes with a convenient option to set its background color / image. However, you might find that your chosen background doesn't show, either in the visual builder or on the front-end. This post explains why, and what to do about it.

1. Set the Post Content Module Background

First, let's look at the option for setting the Post Content module background. Assuming you're editing the custom body of your theme builder template, you should be able to find it by opening your Post Content module's settings and going to:

Post Content Settings > Content > Background > Background

You can now set the background for the Post Content module, as you would for any other Divi Builder element, e.g.:

To the left of the screenshot, you can see I've set a semi-transparent blue background. To the right is the preview. Now here's the problem: The preview of the post content module has a white background, not my chosen blue…

The same is true on the front-end. The background of the post content module shows as white, not blue. What gives?

2. Make the Content Section Backgrounds Transparent

The problem is not that the post content background color isn't working. In actual fact the issue is that the default background color for Divi sections is white, not transparent. This is true of both the sections in the Post Content module preview and all the sections in the content of individual posts. Since, by default, the sections fill all the available space in the post content module area without gaps, the background set for the post content module is, by default, entirely hidden behind the white section backgrounds.

To fix this, we need to make the section backgrounds transparent. We can do this for individual sections or set it as the default for all sections.

Make an Individual Section Background Transparent

This can be done on a section-by section basis, by setting the background in:

Section Settings > Content > Background > Background

Entering the background color as "rgba(0,0,0,0)" or equivalently pulling the right slider to the very bottom will make the background transparent.

For example, here I'm setting a transparent background on the (only) section in a single post. As you can see the blue post content module background is now visible in the preview.

Make All Section Backgrounds Transparent

This will work, but setting a transparent background will get tedious very quickly. A more congenial approach is to use the relatively new Divi presets functionality to set the default section background color to transparent, instead of white.

To use it, open the settings on any section:

  1. Click the "Preset: Default" text below "Section Settings"
  2. Hover over "Section Default Preset"
  3. Click the "Edit Preset Styles" icon

This is shown here:

You'll now be presented with a grey version of the section settings which sets the global default for the section styles, instead of just for this one section. Set the background here to transparent as before.
Now all the sections on your site will have a transparent background by default instead of white, and your post content module backgrounds will show.

Note that changing the default section background to transparent may affect areas on your site where you actually want a white background on certain sections but haven't set it explicitly, so be sure to consider the implications of this for your site.

Showcase Dynamic CTAs on Your Site!

Enhance your WordPress posts with WP Magic CTAs. This plugin uses AI to craft specific call-to-actions for each post, boosting engagement and conversions without extra effort. Perfect for directing your site visitors towards goal-oriented actions tailored to your content.

About Dan Mossop

Dan is a Scottish-born web developer, now living in Brisbane with his wife and son. He has been sharing tips and helping users with Divi since 2014. He created Divi Booster, the first Divi plugin, and continues to develop it along with 20+ other Divi plugins. Dan has a PhD in Computer Science, a background in web security and likes a lot of stuff, 

6 Comments

  1. Thank you for this very helpful post and simple solution! Many years into Divi and still baffled by things like this!

    Reply
    • You're welcome, Mark! I still regularly get baffled by such things too :)

      Reply
  2. Thank you for the tutorial. I am having a problem though. I can't find how to access the section settings–for the elements inside of the post content module. I've Shift-Clicked the headers & paragraphs, then right-clicked & selected to edit preset style. Here I've changed the preset background to transparent. Still ended up with a white blogpost. What am I doing wrong?

    Reply
    • Got it to work — had to change the page template background & it worked.

      Reply
      • Great, I'm glad you were able to figure it out, Alice! Thanks for sharing your solution :)

        Reply
      • Thank you Alice

        Reply

Submit a Comment

Comments are manually moderated and approved at the time they are answered. A preview is shown while pending but may disappear if your are cookies cleared - don't worry though, the comment is still in the queue.

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

We may earn a commission when you visit links on our website.

Latest Posts

Set Custom CSS IDs for Individual Divi Accordion Items

Assigning unique CSS IDs to specific Divi Accordion items allows for precise control over styling, targeting, and linking within your page content. This ability is particularly useful when you want to apply custom designs or create anchor links to particular accordion...

Enable Swipe Navigation in the Divi Gallery Lightbox

Enabling swipe navigation in the Divi Gallery module's lightbox allows users to seamlessly browse through gallery images by swiping left or right, creating a more interactive and mobile-friendly experience. This functionality can significantly improve user engagement...

Disable Slide-In Animation for Divi Gallery Grid Images

Control how images appear in your Divi Gallery module by toggling the slide-in animation effect for grid layouts. Disabling the slide-in animation allows gallery images to load instantly and appear statically, providing a faster and distraction-free browsing...

Control Image Count Display in Divi Gallery Lightbox

Displaying or hiding the image count in the Divi Gallery module’s lightbox can help customize the user experience, depending on whether you want to give visitors an indication of gallery progress or prefer a cleaner, distraction-free view. The ability to toggle this...

Hide Gallery Image Titles in the Divi Lightbox Overlay

Displaying image titles in the lightbox overlay of the Divi Gallery module can sometimes be distracting or unnecessary, depending on your website’s design and user experience goals. Hiding these titles creates a cleaner and more focused viewing experience for visitors...

Random Posts