A user seeks to reduce the desktop banner height on their Shopify store (Dawn theme 15.0.0) without affecting mobile display or image width. Initial attempts using existing code solutions failed.
Proposed Solution:
A CSS code snippet was provided to adjust banner height on desktop screens (min-width: 750px) using custom CSS in the Image banner section. The code sets padding-bottom to 40% and applies object-fit: cover.
Complication:
The solution crops the top and bottom of the image. Two alternatives emerged:
Display the full image at reduced width (not full-width)
Use separate images for desktop and mobile versions
Current Status:
The user prefers maintaining the current mobile image while using a different desktop image at the desired height. A follow-up CSS solution was provided to center and constrain the banner width to 50% on larger screens (min-width: 990px).
The discussion remains open regarding whether photo editing tools can resize the image appropriately, or if advanced theme customization is necessary.
Summarized with AI on October 24.
AI used: claude-sonnet-4-5-20250929.
How do I reduce the height of the image banner on the desktop version of my website? I’ve tried using codes from previous posts of people who’ve experienced similar issues, but unfortunately, none of the solutions that I’ve tried have worked. Any help would be greatly appreciated.
Thank you for your reply. My website address is: MuggedByBritt.com. I’m using Dawn theme 15.0.0. I would like for the image banner on my homepage to be the height of the medium banner option (I currently have the “Adapt To First Image” option selected) but selecting that option changes the width and also changes the image banner size on my mobile version. Please advise.
Or just literally reduce the height of the image itself.
Otherwise changing settings behavior in a theme is an advanced theme customization.
Merchants that need such customization can contact me for services.
Contact info in forum signature below .
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.
Thank you so much for providing the code, I really appreciate it. Is there anything I can do to get the full image to show? Unfortunately, the top and bottom of the image is cut off per my screenshot below:
Thank you for your advisement. The image size is perfect for mobile, so I would like to continue using it for the mobile version of my website, while changing the height of the image for the desktop version of my site (which would require using the option to display a separate image for desktop like you said). The code that you provided is the size that I would like for my desktop image banner without the image being cut. Do you happen to know of any good photo editing websites or programs where I can make adjustments to the height while maintaining the width without compromising the quality of the image? Or is more advanced customization my only option besides using a completely different photo?