Hello @Jim3
To change the image banner height only on desktop in the Dawn theme, you’ll need to use a media query in your custom CSS to target desktop screen sizes.
Here’s a step-by-step (Guide + Code):
**Steps to Add Custom CSS in Dawn Theme:**1. Go to Online Store > Themes > Customize
-
In the theme editor, click the three-dot menu (⋮) in the top-left and choose “Edit code”
-
Open the file:
Assets > base.css (or theme.css in older versions) -
Scroll to the bottom and paste the following code:
CSS to Adjust Banner Height Only on Desktop
/* Desktop-specific banner height */
@media screen and (min-width: 1024px) {
.banner, .banner__media {
height: 500px !important; /* Change this to your desired height */
max-height: 500px !important;
object-fit: cover;
}
}
You can adjust the 500px to any height that works best for your design.### Optional: Target a Specific Banner Section
If you only want to apply this to a specific banner, inspect it in your browser and look for a unique section ID like:
<section id="shopify-section-template--123456789__banner">
Then update the CSS like this:
@media screen and (min-width: 1024px) {
#shopify-section-template--123456789__banner .banner__media {
height: 600px !important;
}
}
Let me know if you want to:
-
Target mobile height separately
-
Apply different styles to multiple banners
-
Or want help locating the exact section ID