Background image changes size on mobile when scrolling

Hi,

I set the background image for the entire site in Pro > Theme Options > Layout and Design

It works fine on desktop but in the mobile view once you scroll down past the header it changes size.

Any help you can offer is great.

thanks,

Brent

Hi Brent,

Thank you for writing in, I can’t replicate that issue on my end, what device you’re on? Please try clearing all your caching features/plugin.

Cheers!

Hi,

By the client and myself are on iPhones. I am using a 7 and he is on an 8

I can’t repoicate the problems using the dev function on my Mac and using safari.

You can see in the two images I have linked to the difference.

Hi Brent,

Can you please try adding this custom CSS under Theme Options > CSS?

@media (max-width: 767px){
    .backstretch img {
        width: 100% !important;
        height: 100% !important;
        left: 0 !important;
    }
}

Hope it helps :slight_smile:

Hi Thai,

unfortunately the issue persists after i add this code to the custom css.

thanks,

Brent

Hi Brent,

Sorry there is a syntax error in the code.

Kindly change it to

@media (max-width: 767px) {
    .backstretch img {
        width: 100% !important;
        height: 100% !important;
        left: 0 !important;
    }
}

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.