Make design / customize button increased padding to the sides how ?

Solved

Make design / customize button increased padding to the sides how ?

Shane_h
Pathfinder
101 3 25

Hi i have tried a few different css codes but no joy - any idea how i can increase the padding width around the customize product button here please https://kitout-fitness.co.uk/collections/bags

 

thanks as always

 

Screenshot 2025-05-07 163211.jpg

Accepted Solution (1)

swym
Trailblazer
202 41 88

This is an accepted solution.

Hey @Shane_h

 

You can easily increase the customise button padding by following the below steps: 

 

1. Open the Code Editor for the theme where you would like to apply the modifications as directed in the example screenshot below. 

swym_3-1746640137642.png

 

 

2. Let’s create a new snippet to add these modifications. We suggest using a snippet so you can easily remove/include it as needed. Also, adding these changes using this snippet will ensure that they do not get overridden by any styles added before it. The screenshot below shows how to create a new snippet. Let’s title this snippet new-custom-styles.liquid

swym_2-1746640119635.png

 

 

3. Now, inside this file, paste in the below code: 

<style>
  .main-collection [data-mode="grid"] .item-actions-wrapper button{
     padding-inline: 100px !important; /* update this number to adjust padding horizontally */
     padding-block: 10px; /* update this number to adjust padding vertically */ 
  }
</style>

 

swym_0-1746639872651.png

 

4. Finally, let's render this file inside your theme layout file. Screenshot below for reference: 

swym_1-1746639942855.png

 

After adding the styling, the button width should now have increased padding as per the values we added before! 

Screenshot 2025-05-07 at 11.17.32 PM.png

I hope this helps! 

 

If my response helped you, please consider giving it a like (👍) and marking it as an accepted solution if it resolved your issue. Your feedback helps other community members with similar questions. 

 

Thank you!

 

Regards, 

Aaryan from Swym

- Appreciate the assistance. Show your approval with a Like! And when your question finds its answer, seal the deal by marking it as an Accepted Solution!
- Our Solutions: Wishlist Plus | Swym Back in Stock Alerts | Swym Gift Lists and Registries

View solution in original post

Replies 6 (6)

dhimansangeeta
Tourist
11 0 1

hello @Shane_h 

Online Store > Themes> Actions > Edit code...>base.css add the code bottom of the file

button.button.button--primary.button--small {
    padding: 5px 20px;
 
}

result will be

Bags-05-07-2025_09_23_PM.png

if its helpful please accept my solution

Thanks

Was I helpful?

Buy me a coffee


APPS BY US :

Professional Customer Accounts APP


Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront
Email me -sangeetarahuldhiman@gmail.com - : -Whatsapp: +917009811712
Checkout Some Free Sections Here
Shane_h
Pathfinder
101 3 25

im afraid we dont have a base.css file in the charge template

 

regards 

BiDeal-Discount
Shopify Partner
514 58 125

Hi @Shane_h 

let try to add custom css below:

.main-collection [data-mode="grid"] .item-actions-wrapper button {
  padding: 10px 20px;
}

then the result should be like:

BiDealDiscount_0-1746633686168.png

 

- Helpful? Like & Accept solution!
- BiDeal Bundle Volume Discounts: Upsell with bundles, quantity breaks, volume discounts. AOV+ with gifts, shipping & progressive cart
- Bify app: Shopify automatic discount solutions
- Contact me? support@bify.app or WhatsApp: +84974709330
Shane_h
Pathfinder
101 3 25

that works but do you know how to add globally to the theme in the code not just CSS styling

regards shane

swym
Trailblazer
202 41 88

This is an accepted solution.

Hey @Shane_h

 

You can easily increase the customise button padding by following the below steps: 

 

1. Open the Code Editor for the theme where you would like to apply the modifications as directed in the example screenshot below. 

swym_3-1746640137642.png

 

 

2. Let’s create a new snippet to add these modifications. We suggest using a snippet so you can easily remove/include it as needed. Also, adding these changes using this snippet will ensure that they do not get overridden by any styles added before it. The screenshot below shows how to create a new snippet. Let’s title this snippet new-custom-styles.liquid

swym_2-1746640119635.png

 

 

3. Now, inside this file, paste in the below code: 

<style>
  .main-collection [data-mode="grid"] .item-actions-wrapper button{
     padding-inline: 100px !important; /* update this number to adjust padding horizontally */
     padding-block: 10px; /* update this number to adjust padding vertically */ 
  }
</style>

 

swym_0-1746639872651.png

 

4. Finally, let's render this file inside your theme layout file. Screenshot below for reference: 

swym_1-1746639942855.png

 

After adding the styling, the button width should now have increased padding as per the values we added before! 

Screenshot 2025-05-07 at 11.17.32 PM.png

I hope this helps! 

 

If my response helped you, please consider giving it a like (👍) and marking it as an accepted solution if it resolved your issue. Your feedback helps other community members with similar questions. 

 

Thank you!

 

Regards, 

Aaryan from Swym

- Appreciate the assistance. Show your approval with a Like! And when your question finds its answer, seal the deal by marking it as an Accepted Solution!
- Our Solutions: Wishlist Plus | Swym Back in Stock Alerts | Swym Gift Lists and Registries
Shane_h
Pathfinder
101 3 25

thanks very much 👍