Hi all,
I hope someone out here can help me fix an issue I’m facing regarding the image banner on homepage (Dawn theme). I want the banner to adapt to the height of the images, but it keeps showing a large grey box either above or below. Both on desktop and mobile..
Would love to hear from you! Thanks in advance 
https://the-lena.studio/
Pw: Lenaversie2!9624
1 Like
- Here is the solution for you @AnneP96
- Please follow these steps:
- Then find the theme.liqid file.
- Then add the following code at the before tag and press ‘Save’ to save it.
@media screen and (min-width: 750px) {
#Banner-template--20849935286602__image_banner_bxiq4P::before, #Banner-template--20849935286602__image_banner_bxiq4P .banner__media::before {
padding-bottom: 0 !important;
}
#Banner-template--20849935286602__image_banner_bxiq4P::before, #Banner-template--20849935286602__image_banner_bxiq4P .banner__media::before, #Banner-template--20849935286602__image_banner_bxiq4P:not(.banner--mobile-bottom) .banner__content::before {
padding-bottom: 0 !important;
}
}
- Here is the result you will achieve:
- Please press ‘Like’ and mark it as ‘Solution’ if you find it helpful. Thank you.
Thank you. Unfortunately the banner is really narrow now.. It should display both full images and the text centered on top of the images like you did. Can you help me achieve that?
I managed to fix it by re-uploading the two images in exactly the same size, and adjusting the banner height in code. Thanks anyways!
1 Like
Glad to help you. have a good day.
Please press ‘Like’ and mark it as ‘Solution’ if you find it helpful. Thank you