Dawn Theme - Change Image Banner Size On Mobile

Hi Community. I was hoping someone may be able to help. I’ve searched the forums and found similar discussions on the topic, but none of the verified solutions have worked for me.

I have a slideshow image banner on my homepage. I have amended the heading font size so that the text is larger on desktop than mobile. The desktop display is now exactly as I want it. However, I was hoping to amend the size of the image on mobile.

Is there a way I can increase the size of the image banner on mobile so that it adapts to the screen size?

https://asiela.com

1 Like

Hi @Asiela

Go to your Online store > Themes > Edit code > open theme.liquid file, add this code before tag, save your file then check again


Hi @Dan-From-Ryviu Thanks so much for the reply and for doing it so quickly.

The screenshot you have shown above is exactly what I am trying to achieve, however, I’ve added the code and it hasn’t amended the image size.

Does this look correct?

Hi @Asiela

Check this one.

  • From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  • Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  • In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
@media only screen and (max-width: 749px){
    .slideshow__text-wrapper {
    height: 50rem !important;
}
}

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

My mistake, please remove \ next to element and check again

This is perfect @Dan-From-Ryviu Works exactly as I wanted. Thank you so much

You are :hugs: