I am trying to make my hero image responsive. I’ve tried browsing through the boards, but couldn’t find a solution. I don’t only want it to be responsive on mobile, it has to be regardless of screen size.
So far I’ve tried adding a focal point to the image, and also adding this code to base.css (just copied it from a thread with a similar issue):
@media only screen and (max-width: 600px) {
#Hero-1607640974dd4d6129 {
background-size: contain;
}
}
#shopify-section-1607640974dd4d6129 .hero .hero__inner {padding: 0;}
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: