All things Shopify and commerce
does anyone know how to make an entire image so on a blog for impulse theme , the image gets cut off. Its an image that goes at the beginning of the blog
Solved! Go to the solution
This is an accepted solution.
You can try this code
.collection-hero img.collection-hero__image {
opacity: 0 !important;
}
.collection-hero:has(img.collection-hero__image) {
background-image: url("https://look-authority.com/cdn/shop/articles/irc_nrCvds1UyMNDZ8zLaS-dBQ7FDbTL_1944x.jpg?v=1740889723");
background-size: contain;
}
Hi @Ecomowner Do you want this?
is there a way to get the image to fill the entire space without it getting cut off
you are trying to fit an image of a different aspect ratio in the box. the image needs to be the proper size for it to look right.
Hi @Ecomowner
.collection-hero img.collection-hero__image {
object-fit: fill !important;
}
I hope this helps
Best,
Daisy
some of the image looked stretched, is there a way to fix that
the image is going to stretch if it isn't the right size. fix the image to the right size
This is an accepted solution.
You can try this code
.collection-hero img.collection-hero__image {
opacity: 0 !important;
}
.collection-hero:has(img.collection-hero__image) {
background-image: url("https://look-authority.com/cdn/shop/articles/irc_nrCvds1UyMNDZ8zLaS-dBQ7FDbTL_1944x.jpg?v=1740889723");
background-size: contain;
}
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025