I am trying to resize my product images, but I only need the transparent background resized. When you click on a collections page, the tops and/or sides of product images are cut off. I want to be able to see the full image from this page.
The only way I know how to do this is to download photos and resized them and dropped them back in but I cannot take the time to do this for all of the photos. Does anyone know how I can do this for all my photos within shopify?
Store website: www.PatchQuestInc.com
Thank you :).
1 Like
Hi @PatchQuestInc ,
I try to fit it some images changes some are not.
Try this.
- 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” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
- And Save.
.rimage-wrapper .rimage__image.cover {
object-fit: contain !important;
width: fit-content;
}
Result:
I hope it help.
1 Like
Thank you for the help! I am unsure where to add this into the code as my assets folder does not have a “base.css” file. Where should this code go?
1 Like
Try to find one of this folder “base.css, style.css or theme.css”. I think you have theme.css. paste it on the very end. Thanks!
1 Like