Site logo

Archived topic

Disable cover on mobile

5 replies · Started by Edwin on February 3, 2020

Viewing posts 1–6 of 6

Hi

What is the best way to disable Cover for Page hero on the mobile

The below is working, but is not correct CSS

.page-hero {
background-size:none!important;

}

Thanks

Edwin

Hi there,

Can you explain a bit more? What do you mean by disabling Cover for page hero?

Like removing the background image on mobile?

A link to your site might also help.

Let me know :)

Hi Leo

I would like to show to picture normal in full width and height. Not cover size on mobile

Hi Leo
Hmm background images don’t quite work like this.

Yes, i am looking for another way. Unfortunately, i have many headers in the website and only that seems to work. Padding will now work, it will not show the whole picture.

Every case is a bit different as it really depends on the picture itself.

One thing for sure is that background-size: none; isn't fixing anything as it's an invalid command.

Can you try adding that image as the featured image of that page and make it displayed in the header element?

Then we can try hiding the page hero on mobile and just use the featured image instead.

Let me know :)

This archived topic is closed to new replies.