not entire image showing

Solved

not entire image showing

Ecomowner
Explorer
59 3 5

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

 

Ecomowner_1-1740889565783.png

 

Accepted Solution (1)
DaisyVo
Shopify Partner
4338 482 568

This is an accepted solution.

Hi @bryan76  @Ecomowner 

 

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;
}

 

DaisyVo_0-1740963433033.png

 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution

View solution in original post

Replies 7 (7)

LizHoang
Shopify Partner
1251 159 196

Hi @Ecomowner Do you want this? 

LizHoang_0-1740892014742.png

 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Check our Joy Rewards & Loyalty Program
Ecomowner
Explorer
59 3 5

is there a way to get the image to fill the entire space without it getting cut off

bryan76
Navigator
412 8 88

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.  

DaisyVo
Shopify Partner
4338 482 568

Hi @Ecomowner 

 

To complete your requests, please follow these steps:
  1. Go to Shopify Admin > Online Store > Theme > Customize > Theme Settings > Custom CSS https://prnt.sc/i8ljAMlHJUKl
  2. Paste the code provided into the Custom CSS section.

 

.collection-hero img.collection-hero__image {
    object-fit: fill !important;
}

 

Here is the result: image_720.png

 

I hope this helps

 

Best,

 

Daisy

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
Ecomowner
Explorer
59 3 5

some of the image looked stretched, is there a way to fix that

bryan76
Navigator
412 8 88

the image is going to stretch if it isn't the right size.  fix the image to the right size

DaisyVo
Shopify Partner
4338 482 568

This is an accepted solution.

Hi @bryan76  @Ecomowner 

 

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;
}

 

DaisyVo_0-1740963433033.png

 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution