Hello
I have my main featured collection at the top of my page for which I want the image sizes to stay the same.
However, for the other featured collections below that, I want THOSE images to be smaller, so that not all featured collections have great big images.
Looking for CSS code to apply to only the section I want to make those featured product images smaller.
(Unless there is another easier way)
Thanks!
- In the code editor, locate and click on the “Assets” folder. Then find and click on the CSS file (usually named “theme.scss.liquid” or similar).
- Scroll to the bottom of the CSS file or any section where you can add custom CSS code.
- Identify the section or container that contains the featured collections you want to target. This may have a specific class or ID associated with it. For example, let’s say the section has the class
.small-featured-collections.
- Add the following CSS code to adjust the image size within that section:
.small-featured-collections .featured-collection-image {
max-width: 200px; /* Adjust this value to your desired image width */
height: auto; /* Maintain aspect ratio */
}
Thanks but I’m wondering if you could be a little more specific with me, since I don’t have a background in coding. #3 I didn’t know how to find for example. I have eight featured collections on my page, and I want the bottom five to have smaller images.
I see that each section allows me to edit CSS just for that section. Couldn’t I just add a code there? Could you give me a CSS code with a specific px value if I wanted those images to be, say 25% smaller than the default image sizes?
Sorry for the big ask (no background in coding)