How can I add round corners to all website images?

Solved

How can I add round corners to all website images?

tboudier
Tourist
20 0 1

Hi,

I would like to add round corners to all pictures on the website (all collections and products images).

How can I do that?

Here is the url of my website:

https://bangkokfirstaid.com

 

Many thanks for your help,

 

Accepted Solution (1)

Beae_Cass
Shopify Partner
436 167 176

This is an accepted solution.

Hi @tboudier ,

This is Anthony from Beae Landing Page Builder, and I’m happy to assist you today.

 

While I acknowledge that this issue falls short of the desired outcome, I have an idea that I believe might be of help:

1. Go to Online Store -> Theme -> Edit code
2. Open your theme.liquid file
3. Paste below code before </body>:

<style>
.product-item__image-wrapper--with-secondary .product-item__primary-image, .product-item__image-wrapper--with-secondary .product-item__secondary-image,
.collection-item__image-wrapper,
.product-gallery__size-limiter>div>img{
    border-radius: 15px !important
}
</style>

Beae_Anthony_0-1696159116692.png

 

Best regards,

Anthony

Beae - The NextGen Page Builder


- Was my answer helpful? Please hit Like or Mark it as solution!
- Get in touch with us: App Store | Demo Template

View solution in original post

Replies 6 (6)

Made4uo-Ribe
Shopify Partner
6841 1633 2013

Hi @tboudier 

Try this one. 

  • 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, style.css or theme.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:

 

div#shopify-section-16519091021d9a5d95 img,
div#shopify-section-1601000111613 img,
.collection-item__image-wrapper, 
.product-gallery__size-limiter img {
    border-radius: 20px;
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1696153894723.png
If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.

Beae_Cass
Shopify Partner
436 167 176

This is an accepted solution.

Hi @tboudier ,

This is Anthony from Beae Landing Page Builder, and I’m happy to assist you today.

 

While I acknowledge that this issue falls short of the desired outcome, I have an idea that I believe might be of help:

1. Go to Online Store -> Theme -> Edit code
2. Open your theme.liquid file
3. Paste below code before </body>:

<style>
.product-item__image-wrapper--with-secondary .product-item__primary-image, .product-item__image-wrapper--with-secondary .product-item__secondary-image,
.collection-item__image-wrapper,
.product-gallery__size-limiter>div>img{
    border-radius: 15px !important
}
</style>

Beae_Anthony_0-1696159116692.png

 

Best regards,

Anthony

Beae - The NextGen Page Builder


- Was my answer helpful? Please hit Like or Mark it as solution!
- Get in touch with us: App Store | Demo Template
tboudier
Tourist
20 0 1

It works perfectly for the products pictures.

May I ask you how to do the same with image with text sections?

Thank you so much!

Qvitre
Visitor
1 0 0

Did you find a solution for this?

PageFly-Richard
Shopify Partner
4394 1005 1657

Hi @tboudier 

This is Richard from PageFly - Shopify Page Builder App, I’d like to suggest this idea:
Online Store ->Theme ->Edit code
Assets ->Theme.css

.product-gallery__size-limiter>div>img{
    border-radius: 15px !important
}

Hope you find my answer helpful!
Best regards,
Richard | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.

tboudier
Tourist
20 0 1

Hi @PageFly-Richard 

Thank you so much for your help.

I did it but unfortunately it did not work.

Any other idea?

Kind regards,

https://bangkokfirstaid.com/

Screen Shot 2566-10-04 at 12.05.21.png