We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Apply style to all images except 1 section

Solved

Apply style to all images except 1 section

INFRA
Shopify Partner
252 2 90

HI there,

 

I added below code in my theme.liquid file to get all the corners round. I just need it to not apply to this section on the homepage:

 

Screenshot 2025-01-10 at 18.19.31.png

class="slider-items-template--24072017936666__ss_slider_PGUGLd"

 

 

 

  <style> img { border-radius: 20px; } </style>

 

 

How can best exclude this?

Thanks so much!

website

password: chaos

Accepted Solution (1)

Moeed
Shopify Partner
7764 2082 2568

This is an accepted solution.

Hey @INFRA 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
div#shopify-section-template--24072017936666__ss_slider_PGUGLd img {
    border-radius: unset !important;
}
</style>

RESULT:

 

Moeed_0-1736496237574.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


View solution in original post

Replies 5 (5)

topnewyork
Astronaut
1552 192 253

Hi @INFRA 
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head>

<style>
#chaos-in-the-cbd .slider-image-template--24072017936666__ss_slider_PGUGLd img, .slider-image-template--24072017936666__ss_slider_PGUGLd svg img{
    border-radius: 0px !important;
}
</style>

  If you find my advice helpful please remember to LIKE and accept as SOLUTION.

Thanks!

 

Need a Shopify developer? Hire us at Top New York Web Design
Boost Your Store Sales with Volume/Tier Discount Try Big Bulk Discount
Create New Shopify Store For Just 1$/Month

Moeed
Shopify Partner
7764 2082 2568

This is an accepted solution.

Hey @INFRA 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
div#shopify-section-template--24072017936666__ss_slider_PGUGLd img {
    border-radius: unset !important;
}
</style>

RESULT:

 

Moeed_0-1736496237574.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


websensepro
Shopify Partner
2144 268 319

Hi @INFRA 

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.css / based.css file and paste the code in the bottom of the file.

#chaos-in-the-cbd .slider-image-template--24072017936666__ss_slider_PGUGLd img {
    border-radius: 0 !important;
}

Result:

websensepro_0-1736496241510.png

 

 If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!

Need a Shopify developer? Hire us at WebSensePro For Shopify Design Changes/Coding
For Free Tutorials Subscribe to our youtube
Get More Sales Using Big Bulk Discount APP
Create Your Shopify Store For Just 1$/Month
Get More Sales Using Big Bulk Discount APP

Dan-From-Ryviu
Shopify Partner
12073 2359 2539

Please add this code to Custom CSS of that section. 

img { border-radius: unset; }

- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

ZestardTech
Shopify Partner
6161 1100 1479

Hello @INFRA ,

Here are the steps to apply the necessary changes in your Shopify store:

  1. In your Shopify Admin, navigate to Online Store > Themes > Actions > Edit Code.
  2. Locate Asset > base.css and paste the following code at the bottom of the file:

 

.swiper-wrapper a  {
    border-radius: unset !important;
}

 

ZestardTech_0-1736506081710.png

 


Let me know if you need further assistance!

Want to modify or develop new app, Hire us.
If helpful then please Like and Accept Solution .
Email: support@zestard.com
Shopify Apps URL :- https://apps.shopify.com/partners/zestard-technologies
Custom Modifications Into Shopify Theme | Shopify Private App | SEO & Digital Marketing