How To Use The Missing Divi Background Image Settings On Parallax Sections Tutorial by Pee Aye Creative

How To Use The Missing Divi Background Image Settings On Parallax Sections

Nelson Miller Profile Orange
Every wonder why the Divi section background settings disappear when you turn on parallax? Here's something to help.

Parallax Turned Off

How To Use The Missing Divi Background Image Settings On Parallax Sections

Parallax Turned On

How To Use The Missing Divi Background Image Settings On Parallax Sections

Where To Paste The CSS Code

1. Divi Assistant
If you are using our Divi Assistant plugin, simply paste the code in the CSS tab in the custom code window in the Divi Visual Builder.

2. Child Theme
If you are using a child theme, paste this code into the style.css file. If you don't have a child theme, you can generate a child theme directly on your site or download our free child theme.

3. Divi Theme Options Integration
Otherwise, paste this code in your Divi>Theme Options>General tab in the "Custom CSS" code area.

If you need help understanding where to paste the code, please check out our complete guide about where to add custom code In Divi.

Code For Divi 4

/*background image color*/
.pa-parallax-background-image-color .et_parallax_bg:before {
content:"";
display: block;
height: 100%;
position: absolute;
top: 0;
left: 0;
width: 100%;
background-color: rgba(0,0,0,0.6);
}

Code For Divi 5

/*background image color*/
.pa-parallax-background-image-color .et-pb-parallax-background:before {
content:"";
display: block;
height: 100%;
position: absolute;
top: 0;
left: 0;
width: 100%;
background-color: rgba(0,0,0,0.6);
}

Background Color

Code For Divi 4

/*background image gradient color*/
.pa-parallax-background-image-gradient .et_parallax_bg:before {
content:"";
display: block;
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
background-image: -webkit-gradient(linear, left top, right bottom, from(rgba(0, 195, 170, 0.70)), to(rgba(122, 87, 209, 0.70)));
background-image: -webkit-linear-gradient(left top, rgba(0, 195, 170, 0.70), rgba(122, 87, 209, 0.70));
background-image: -moz-linear-gradient(left top, rgba(0, 195, 170, 0.70), rgba(122, 87, 209, 0.70));
background-image: -o-linear-gradient(left top, rgba(0, 195, 170, 0.70), rgba(122, 87, 209, 0.70));
background-image: -ms-linear-gradient(left top, rgba(0, 195, 170, 0.70), rgba(122, 87, 209, 0.70));
background-image: linear-gradient(left top, rgba(0, 195, 170, 0.70), rgba(122, 87, 209, 0.70));
}

Code For Divi 5

/*background image gradient color*/
.pa-parallax-background-image-gradient .et-pb-parallax-background:before {
content:"";
display: block;
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
background-image: -webkit-gradient(linear, left top, right bottom, from(rgba(0, 195, 170, 0.70)), to(rgba(122, 87, 209, 0.70)));
background-image: -webkit-linear-gradient(left top, rgba(0, 195, 170, 0.70), rgba(122, 87, 209, 0.70));
background-image: -moz-linear-gradient(left top, rgba(0, 195, 170, 0.70), rgba(122, 87, 209, 0.70));
background-image: -o-linear-gradient(left top, rgba(0, 195, 170, 0.70), rgba(122, 87, 209, 0.70));
background-image: -ms-linear-gradient(left top, rgba(0, 195, 170, 0.70), rgba(122, 87, 209, 0.70));
background-image: linear-gradient(left top, rgba(0, 195, 170, 0.70), rgba(122, 87, 209, 0.70));
}

Background Gradient

Code For Divi 4

/*background image size*/
.pa-parallax-background-image-size .et_parallax_bg {
background-size: cover;
}

Code For Divi 5

/*background image size*/
.pa-parallax-background-image-size  .et-pb-parallax-background {
background-size: cover;
}

Background Image Size

Code For Divi 4

/*background image position*/
.pa-parallax-background-image-position .et_parallax_bg {
background-position: center;
}

Code For Divi 5

/*background image position*/
.pa-parallax-background-image-position .et-pb-parallax-background {
background-position: center;
}

Background Image Position

Code For Divi 4

/*background image repeat*/
.pa-parallax-background-image-repeat .et_parallax_bg {
background-repeat: repeat;
background-size: initial;
}

Code For Divi 5

/*background image repeat*/
.pa-parallax-background-image-repeat .et-pb-parallax-background {
background-repeat: repeat;
background-size: initial;
}

Background Image Repeat

Code For Divi 4

/*background image blend*/
.pa-parallax-background-image-blend .et_parallax_bg {
background-color: #2cba6c;
background-blend-mode: multiply;
}

Code For Divi 5

/*background image blend*/
.pa-parallax-background-image-blend .et-pb-parallax-background {
background-color: #2cba6c;
background-blend-mode: multiply;
}

Background Image Blend

divi 5 logo

Shop Our Divi Plugins

Last updated June 30, 2026

Subscribe For More Divi News & Resources!

At the start of each month, we send out a recap newsletter from the month before with family news, Divi news, our latest tutorials, product news, and a look behind the scenes. Occasionally, if the news is too exciting to wait, we will send out another email separate from the monthly newsletter. That’s what you get when you subscribe, and of course, you can unsubscribe if you are no longer interested!

Blog Post Optin
divi 5 logo

Shop Our Divi Plugins

Featured Products

Asset 4

New! Trail Guides

Follow a series of blog posts carefully arranged around a specific topic or goal! Keep track of your progress by marking posts completed, just like a free course!

View Trail Guides

î‚£

Divi Tutorials On YouTube

Our videos have views! Join subscribers and enjoy over video tutorials!

Visit Our Channel

Leave A Response!

By commenting you agree to our Blog & YouTube Comments Policy

26 Comments

Comments By Members

These comments are highlighted because they were posted by fans who have a membership on this site.

  1. Jaime Ojeda <span class="comment-author-role-label"><a href="https://www.peeayecreative.com/product/divi-adventure-club/" class="comment-author-role-link" rel="external nofollow" target="_blank">Divi Adventure Club Member</a></span>

    Hey Neslon… love your tutorials man!

    So I have a little issue in which the background image in a slider is not showing as “true parallax”. It puts it as the CSS method, where the image stays put. I love the effect when the image scrolls up slower than the wording.

    I went into the “Background” section of each slide, clicked on the image tab and turned on the “Parallax” button and made sure it says “True Parallax”.

    When I’m checking the slider while in the visual builder, it looks perfect and scrolls like it should, but as soon as I exit the visual builder, then the background just stays in one place.

    Here’s the page so you can check it out.
    https://devsitegroup.com/autodetailing/

    Any idea how I can fix this?

    Thanks!

    Jaime

    Reply
    • Hemant Gaba <span class="comment-author-role-label"><a href="https://www.peeayecreative.com/product/divi-adventure-club/" class="comment-author-role-link" rel="external nofollow" target="_blank">Divi Adventure Club Member</a></span>

      Hi there!

      I have checked and the parallax effect is working fine. Can you please check in any other browser?

      Reply
  2. Arlene Seydoux <span class="comment-author-role-label"><a href="https://www.peeayecreative.com/product/divi-adventure-club/" class="comment-author-role-link" rel="external nofollow" target="_blank">Divi Adventure Club Member</a></span>

    Hi Nelson – I was wondering if it would be possible to add css that would make the background parallax image move horizontally on scroll.

    I have the background image in a section
    Layered on top of that I have a row with a patterned wave background (just for fun)
    Final top layer is a divider module containing a knockout png “mask” ( I will change mask to svg eventually)

    I am trying to achieve the effect of water moving horizontally behind the mask. How cool would that be?!

    The example is on a staging site, time limited for those of you looking at comments…

    Reply
    • Hemant Gaba <span class="comment-author-role-label"><a href="https://www.peeayecreative.com/product/divi-adventure-club/" class="comment-author-role-link" rel="external nofollow" target="_blank">Divi Adventure Club Member</a></span>

      Hey Arlene,

      I understood what you are trying to achieve but I am not sure that we can achieve it exactly with parallax and CSS. I would suggest you to use a gif of moving water as it will be much more straightforward then this. But if you trying to achieve with Parallax then please enable the parallax effect first and let me know so that I could try some CSS to make it possible.

      Reply

Comments By Others

  1. Bill

    The background color overlay doesn’t seem to work with Divi 5. This is a site migrated from Divi 4 to divi 5, where it was working fine previously.

    Reply
    • Hemant Gaba <span class="comment-author-role-label"><a href="https://www.peeayecreative.com/product/divi-adventure-club/" class="comment-author-role-link" rel="external nofollow" target="_blank">Divi Adventure Club Member</a></span>

      Hi Bill!

      Please use the selector “.pa-parallax-background-image-gradient .et-pb-parallax-background” instead of above one for each css code.

      For the before element, the selector will be “.pa-parallax-background-image-gradient .et-pb-parallax-background:before”.

      Hope it helps!

      Reply
  2. Michael Dafoe

    When I turn on CSS parallax it scales up my image. How do I stop that from happening?

    Reply
  3. Trish Meyer

    Thanks for these tips! I found the image placement was more versatile by using % instead of “center” etc.

    I added this to the Page’s CSS by clicking on the purple gear at the bottom of the Visual Editor (that way I can use different percentages on different pages for different images).

    The 50% centers it horizontally, and the 100% seems to work for my particular image (it places the vertical center at the bottom of the section).

    /*background image position*/
    .pa-parallax-background-image-position .et_parallax_bg {
    background-position: 50% 100% !important;
    }

    Reply
  4. RafaS

    Hello ! I think that this is the article that i was looking for ! But i’m 0 in code… i’m getting errors everywhere : “Expected RBRACE.” and ” Unexpected token”}” “. I copied the code then went to “Advanced => CSS ID&Classes => CSS ID : “blank” // CSS class : pa-parallax-background-image-size pa-parallax-background-image-position.

    Then in “Custom CSS” I copied the code you share us in the right element (“main element” / “header”…)

    I deactivated the Divi “true parrallax” before i done that.

    Best regards,

    RafaS.

    Reply
  5. Mark Dalley

    Hi Nelson,
    Super helpful, as always. Thanks!

    I’m wondering if the same concept/code could be used for modules. In particular, i’d like to use it on a slider or fullwidth slider individual slide backgrounds.

    Reply
  6. Daniel

    I am getting a CSS error stating “expected rbrace” on line 1 (next line after comment line) I can’t work out the error and I copied your code and I have added the css class.

    /*background image size*/
    .pa-parallax-background-image-size .et_parallax_bg {
    “expected rbrace”
    background-size: cover;
    }

    Reply
  7. Neil Payne

    Many thanks Nelson. This article addresses exactly what I am trying to achieve. However I’ve tried copying and pasting your exact snippet into CCS Class, but it’s not adding the background image blend:

    /*background image blend*/
    .pa-parallax-background-image-blend .et_parallax_bg {
    background-color: #2cba6c;
    background-blend-mode: multiply;
    }

    Is it correct for me to paste the entire above code into CCS Class or am I doing something wrong?

    Reply
  8. Ramon Buzon

    Hi Nelson, let me suggest you an even faster trick to show the Background Color Overlay + Parallax effect:

    1. Paste this into Advanced> Custom CSS> Main Element:

    background-attachment: fixed;

    2. Deactive “Use Parallax Effect” from Content> Background> Image

    It Hope it helps! 😉

    Reply
  9. snake

    unfortunately, this is not working at all for me.
    I added the required class to the section custom CSS ID and classes, and I added the CSS in the divi custom css section, but it is having no effect.

    Reply
    • Chris

      Replace “:before” with “::before”. Then it works. The pseudo class has to be noted with double colons.

      Reply
      • Trisha Dingillo

        this is what worked for me in divi 4.0
        wouldn’t have figured it out without your help!

        .et_parallax_bg_wrap :before {
        content:””;
        display: block;
        height: 100%;
        background-image: linear-gradient(180deg,rgba(0,0,0,0.5) 0%,rgba(0,0,0,0) 50%) }

Submit a Comment

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

Recent Posts

Last updated June 30, 2026
Shopping cart0
There are no products in the cart!
You may be interested in…
Divi Builder Experience Helper Plugin by Pee-Aye Creative
From: $29.00 / year

Select options This product has multiple variants. The options may be chosen on the product page

divi assistant plugin by pee aye creative
From: $69.00 / year

Select options This product has multiple variants. The options may be chosen on the product page

Divi Carousel Maker Plugin by Pee Aye Creative
From: $29.00 / year

Select options This product has multiple variants. The options may be chosen on the product page

Logo for D Beginner Course with graduation cap
From: $47.00 / year

Select options This product has multiple variants. The options may be chosen on the product page

divi events calendar
From: $54.00 / year

Select options This product has multiple variants. The options may be chosen on the product page

Continue shopping
0