Hello Shopify community,
I’m using the Habitat theme for my shopify store.
I’m trying to figure out how to give the images in the “featured collections” area a radius. Right now they are perfectly square and I’d like to give them a radius to make them come across a little softer.
Any help would be greatly appreciated!
Thanks in advance.
Hi @Perspectry
Can you please share store URL?
Hello,
the store url is - https://perspectry.com.au/
-
open customization
-
Go to featured collection section
-
Go to custom CSS
-
add this code
.product-card .product-featured-image-link {
border-radius: 8px;
}
- Save it and refresh the website
You can the border radius according to what you want to set where i gave 8px. You can change this.
Hello @Perspectry ,
As per my understanding you are looking to provide rounded corners to your store product images.
You can implement this change by adding the below mentioned code.
Please follow the following steps for adding the code.
-
Go to Online Store → Themes → Click on Three dots(Action) → Edit code.
-
Search for the theme.liquid file and open it.
-
Next add the below mentioned code at the bottom of the theme.liquid file before tag.
a.product-featured-image-link.aspect-ratio.aspect-ratio--square {
border-radius: 25px;
}
- Save.
After implementing code, output will like this → https://prnt.sc/1bYF7RF7zLe9
I hope the code helps you.
Please let me know if you have any query or need further assistance.
Thank you.
This worked an absolute treat, thank you so much!!
Thanks so much for your help!! greatly appreciated !!
How can I do this on a “Featured product” section? I’m using the theme called “Fame”