What's your biggest current challenge? Have your say in Community Polls along the right column.

Re: Assistance Needed with Prehistoric Cavewoman Costume Image

Assistance Needed with Prehistoric Cavewoman Costume Image

Sheeks
Pathfinder
109 1 16

I need help with one of my product images. As you can see on my store, the image of the Prehistoric Cavewoman Costume is getting cut off, unlike the other pictures that fit properly within the frame. I’m not sure why this specific image doesn’t fit like the others. Could you please guide me on how to fix this issue?

this one good

 

Sheeks_0-1726013703368.png

but look at this
https://sheeksorority.com/collections/handbag

Sheeks_1-1726013741723.png

 

Replies 6 (6)

AnneLuo
Shopify Partner
1138 211 235

Hi, @Sheeks 

The original size of this image is different from other images and should be modified to 360 * 360.

Hopefully it will help you. If yes then Please don't forget hit Like and Mark it as solution!

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to Email Me   

Buy Me A Coffee

PaulNewton
Shopify Partner
7528 663 1580

Hi @Sheeks to clarify this edit the image itself.

The problem image is rectangular portrait aspect ratio, thin and tall , while the other images are square.

For consistency in themes and any other sales channels edit the image itself to be the proper size similar to the aspect ratio of the other images.

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


BSSCommerce-B2B
Shopify Partner
1969 564 566

Hello, my friend @Sheeks !

 

I noticed that you have customized the image size in another thread, but the image titled "Prehistoric Cavewoman Costume Image" has an issue. Therefore, I'm providing you with a solution that allows you to resize just that specific image without affecting other customizations on the entire page. You can try the following instructions:

 

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file.

3. Find the closing </body> tag, which is usually at the bottom of the file.

Before the closing </body> tag, add the following script:

 

 

<script>
  document.addEventListener('DOMContentLoaded', function() {
    var imgElement = document.querySelector('#products-template--23094688284947__main-collection > div.main-products-wrapper > div.container > div > div:nth-child(5) > div > div.product-card-img.hover-image > a > div > img.product-first-img.lazyautosizes.lazyloaded');
    
    if (imgElement) {
      imgElement.style.setProperty('object-fit', 'contain', 'important');
    }
  });
</script>

 

 

And the result will be: 

BSSCommerceB2B_0-1726014698370.png

 

I hope these instructions will help you. If they are helpful, please give us likes and mark as the solution.

Have a nice day sir! 

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

Sheeks
Pathfinder
109 1 16

Sheeks_0-1726017073628.png

i already put but its not working

Sheeks_1-1726017113229.png

 

PaulNewton
Shopify Partner
7528 663 1580

You don't need code for this, edit the image itself to be the proper aspect ratio, per my other post.

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


BSSCommerce-B2B
Shopify Partner
1969 564 566

Hi @Sheeks , 

Sr about that. 

You can try this code to replace previous my solution. 

<script>
    let imgElement = document.querySelector('#products-template--23094688284947__main-collection > div.main-products-wrapper > div.container > div > div:nth-child(6) > div > div.product-card-img.hover-image > a > div > img.product-first-img.lazyautosizes.lazyloaded');
    
    if (imgElement) {
      // Apply the object-fit property with !important
      imgElement.style.cssText = 'object-fit: contain !important;';
    }
</script>

I tried this code in console view (f12) and worked like this: 

BSSCommerceB2B_0-1726278202264.png

Hope it helps! 

Try this one, my friend! 

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now