Site logo

Archived topic

Hide Background/Cover image on mobile

7 replies · Started by EDWARD on March 9, 2020

Viewing posts 1–8 of 8

Hi, I'm trying to hide the background/cover images on my site. I added the below to the simple css but it does not seem to work.

<div class="hide-on-mobile hide-on-tablet">
    Content here will only display in Desktop
</div>

The site is in draft mode but here is a published page:

Any input?

Thanks!

Kevin

Hi there,

Can you disable the AMP plugin for now and any other caching plugins you might be using?

Let me know :)

Done

Apologies, I had no me left on..it’s deactivated.

It's a bit tricky as the background image is added as inline HTML style.

Give this CSS a shot:

@media (max-width: 768px) {
    .wp-block-cover.has-background-dim.ab-layout-landing-3-cover {
        background-image: none !important;
    }
}

That worked! Thanks for the prompt response as always!

No problem :)

This archived topic is closed to new replies.