Dawn Theme - Mobile Banner Image Cut off

My Image Banner for desktop looks great but in the mobile version it cuts it off majorly. I’ve tried codes found in other discussions but they did not work for me. Website is www.silverandash.co to view the issue.

Thanks for any help!

1 Like

Hey @silverandashco

Follow these Steps:

  1. Go to Online Store

  2. Edit Code

  3. Find theme.liquid file

  4. Add the following code in the bottom of the file above tag


RESULT:

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

Thanks Moeed - the problem is I don’t want those big gray bars involved. Is there a way to fix that?

Hi @silverandashco

Try this one.

  1. From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  2. Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  3. 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:
.banner__media img {
    object-fit: contain !important;
}
.banner:after, .banner__media:after {
    background: transparent !important;
}

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!

Thank you for your response! However, it’s still not the full image so not what I’m looking for. Any way to still get the full image with no gray bars?