Header image contain (only on home page!)

I want the header image on my home page to be set on CONTAIN.
But all the other pages must have the header image in COVER.

Can you tell me the CSS code to do this?

Hello there,

The solution maybe adding a couple of CSS code.

Please share a link to your website. So I could get the correct CSS selector to use.

Regards,
Kharis


in the customise section I have chosen COVER

08

Only on the HOME page do I need it on CONTAIN.

THX

Hello there,

Try adding this CSS code to Appearance > Customize > Additional CSS from dashboard.

    .home .header-image {
      background-size: contain !important;
    }

Regards,
Kharis

PERFECT!
You guys are heroes! :slight_smile:

You’re welcome!

Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.

Regards,
Kharis