Change size for Image Banner - Dawn

Hi,

We need help to change the imagesize for this Image Banner in Dawn template. The size is nice for mobile, but extremely big for desktop. Please see attached.

1 Like

Hi @MikaelMo , kindly provide your store URL please. Thanks

Hi! It’s www.livelonger.no

Hi @MikaelMo ,

Please go to Actions > Edit code > Assets > base.css file and paste this at the bottom of the file:

@media screen and (min-width: 750px) {
    #shopify-section-template--21909981364525__image_banner_QtdVxp .banner {
            max-height: 80rem;
    }
    #shopify-section-template--21909981364525__image_banner_QtdVxp .media > img {
width: auto;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
    }
}

Hi, @namphan

I tried using that code, but it did not work..

Hi @MikaelMo ,

I checked and the code is giving me an error, can you check it again?

Hi again,

I checked, and it’s copied straight from the board you sent me..

Hi @MikaelMo ,

Can you try to copy it?

@media screen and (min-width: 750px) {
    #shopify-section-template--21909981364525__image_banner_QtdVxp .banner {
            max-height: 80rem;
    }
    #shopify-section-template--21909981364525__image_banner_QtdVxp .media > img {
width: auto;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
    }
}

That one did not work either..

Hi @MikaelMo ,

Can I send you a collaborator invite? it will help me debug everything best

Sure! How do we do that?

Hi @MikaelMo ,

Please send me the collaborator code in private message, I will send you the invitation and check it

Hi @MikaelMo ,

Because the current base.css file is an error, it won’t work well when added at the end of the file:

I changed it, please check and let me know

Amazing!! How can I make it even smaller? Like these ones.

Hi @MikaelMo ,

You just need to reduce 80rem to 50rem or less, it will work fine as you want:

Hi, Namphan

Can you come to my store and check, I want to resize the Desktop Image Banner like this website: https://teazys.com/ , how do I do that, because it currently displays too large on desktop, make sure the image is not cropped when resizing

Hi @PuppyJoyful ,

Please send the website link, I will check it for you

@namphan website link: puppyjoyful.com

Hi, Namphan

The google test says I have 5 layout offsets, how do I fix them? This is my website https://mozhixue.shop/

Hi @mozhixue ,

Can you describe the errors more clearly? I will check it