Add Padding/Margin Inside Product Slider Images

Solved

Add Padding/Margin Inside Product Slider Images

manbru
Pathfinder
129 0 30

Hey,

 

I want to make the image smaller in the product slider, but without actually making the original pic smaller. Instead i want to add padding/margin inside the product image slider (but i haven't figured out how to do that) See pic 2 for reference.

 

my store: https://r1vex.myshopify.com/products/emil-randig-strandstol-taupe 

 

Right now:

Skärmavbild 2024-07-25 kl. 17.59.29.png

 

 

How i want it to be:

Skärmavbild 2024-07-25 kl. 18.03.30.png

 

Thanks for help!

Accepted Solution (1)

BSS-TekLabs
Shopify Partner
2401 695 835

This is an accepted solution.

Hi @manbru,

Here are the steps you can follow:

1, Navigate to Online Store > Themes > Edit Code.

2, Locate and open the base.css (or theme.css, custom.css) file.

3, Paste the code snippet provided below at the bottom of the file, then save your changes.

.product__image-slider .carousel-cell {
    padding: 100px;
    background: #fff;
    border-radius: 15px;
}

Here is the result

BSSTekLabs_0-1721924131768.png

We hope this assists in resolving the issue.

If you find our solution helpful, kindly consider Liking and Marking it as Accepted. Thank you!

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


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

View solution in original post

Replies 2 (2)

BSS-TekLabs
Shopify Partner
2401 695 835

This is an accepted solution.

Hi @manbru,

Here are the steps you can follow:

1, Navigate to Online Store > Themes > Edit Code.

2, Locate and open the base.css (or theme.css, custom.css) file.

3, Paste the code snippet provided below at the bottom of the file, then save your changes.

.product__image-slider .carousel-cell {
    padding: 100px;
    background: #fff;
    border-radius: 15px;
}

Here is the result

BSSTekLabs_0-1721924131768.png

We hope this assists in resolving the issue.

If you find our solution helpful, kindly consider Liking and Marking it as Accepted. Thank you!

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


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

BSS-TekLabs
Shopify Partner
2401 695 835

- Here is the solution for you @manbru 
- Please follow these steps:

step.png

- Then find the base.css or theme.css file.
- Then add the following code at the end of the file and press 'Save' to save it.

.product__image-slider .carousel-cell {
    padding: 55px !important;
    background: white !important;
    border-radius: 25px !important;
}

- Here is the result you will achieve:

BSSTekLabs_0-1721924141583.png

 

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


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