Shopify themes, liquid, logos, and UX
Hi,
I need my size selection buttons on the product page to be a little smaller, please.
https://f20gs996d5skh5a0-69711397132.shopifypreview.com
Thank you!
Solved! Go to the solution
This is an accepted solution.
Hi @domo2, Pls insert this code to your file css:
variant-selects label {
font-size: 11px !important;
}
Here is result:
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
This is an accepted solution.
Hi @domo2 ,
Add below css to base.css file.
.product-form__input--pill input[type=radio]+label {
padding: 0.5rem 1rem !important;
}
Let me know if you need any assistance.
Thank you
This is an accepted solution.
Hello! @domo2 Please follow these steps to add this CSS code:
1. Go to your Online Store
2. Click on "Themes"
3. Select "Edit code"
4. Open your CSS file. If you have a custom CSS file, open that instead.
5. If you can't find your custom CSS file, open "base.css"
6. Add the following code at the end of the file.
body product-info .product-form__input--pill input[type=radio]+label {
padding: 1rem;
width: 4.5rem;
}
If you need further assistance, please let me know. If you found my help useful, consider liking this message and marking it as the solution.
This is an accepted solution.
Hi @domo2, You can try this code by following these steps:
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Inside tag head. You need create style tags. After you'll insert my code inside it
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
This is an accepted solution.
Hi @domo2, Pls try again this code:
variant-selects label {
margin: .7rem .2rem .2rem 0 !important;
font-size: 14px !important;
padding: 1rem 1.7rem !important;
}
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
This is an accepted solution.
Hi @domo2,
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Inside body tags. You need insert my code inside it before close body tags
<script>
document.addEventListener('DOMContentLoaded', function() {
let price = document.querySelector('.product__info-wrapper .price-item');
if (price) {
price.textContent = price.textContent.split(',')[0];
}
});
</script>
Here is result:
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
This is an accepted solution.
Hi @domo2,
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Inside body tags. You need insert my code inside it before close body tags
<script>
document.addEventListener('DOMContentLoaded', function() {
let collection_list = document.querySelectorAll('.collection .card__information .price-item');
if (collection_list.length > 0) {
collection_list.forEach((item) => {
item.textContent = item.textContent.split(',')[0];
})
});
</script>
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
This is an accepted solution.
Hi @domo2, Pls insert this code to your file css:
variant-selects label {
font-size: 11px !important;
}
Here is result:
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
It worked thank you, but on the mobile version they just dont fit in 1 line. XXL is always below. So I need the padding smaller? Or how do I fit them in 1 line?
This is an accepted solution.
Hello! @domo2 Please follow these steps to add this CSS code:
1. Go to your Online Store
2. Click on "Themes"
3. Select "Edit code"
4. Open your CSS file. If you have a custom CSS file, open that instead.
5. If you can't find your custom CSS file, open "base.css"
6. Add the following code at the end of the file.
body product-info .product-form__input--pill input[type=radio]+label {
padding: 1rem;
width: 4.5rem;
}
If you need further assistance, please let me know. If you found my help useful, consider liking this message and marking it as the solution.
I like the size of the button. But now the letters need to be a bit smaller, please.
Hi @domo2, Pls insert this code to your file css:
variant-selects label {
margin: .7rem .2rem .2rem 0 !important;
font-size: 11px !important;
}
Here is result:
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
Its pretty logical, but it just doesnt work.. Dont know why
This is an accepted solution.
Hi @domo2, You can try this code by following these steps:
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Inside tag head. You need create style tags. After you'll insert my code inside it
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
That worked, thank you! But now they are a little too small. The size of your screenshot on the previous reply is perfect.
Hi @domo2, You can increase the font-size to customize it to your liking. Hope this can help you 😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
I literally did the same thing as before but changed the font size and now they are not in 1 line again. Even with font size 11. I'm confused.
Edit:
Welp I guess it was just a fault in my shopify editor. In the preview it worked. So thank you very much!
One last question do you know how I change my price from 79,00 to 79?
This is an accepted solution.
Hi @domo2, Pls try again this code:
variant-selects label {
margin: .7rem .2rem .2rem 0 !important;
font-size: 14px !important;
padding: 1rem 1.7rem !important;
}
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
Thank you very much!
One last question do you know how I change my price from 79,00 to 79?
This is an accepted solution.
Hi @domo2,
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Inside body tags. You need insert my code inside it before close body tags
<script>
document.addEventListener('DOMContentLoaded', function() {
let price = document.querySelector('.product__info-wrapper .price-item');
if (price) {
price.textContent = price.textContent.split(',')[0];
}
});
</script>
Here is result:
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
That worked, thank you! But now I also need it on the collections page. Can you help me with that, please?
This is an accepted solution.
Hi @domo2,
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Inside body tags. You need insert my code inside it before close body tags
<script>
document.addEventListener('DOMContentLoaded', function() {
let collection_list = document.querySelectorAll('.collection .card__information .price-item');
if (collection_list.length > 0) {
collection_list.forEach((item) => {
item.textContent = item.textContent.split(',')[0];
})
});
</script>
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
This is an accepted solution.
Hi @domo2 ,
Add below css to base.css file.
.product-form__input--pill input[type=radio]+label {
padding: 0.5rem 1rem !important;
}
Let me know if you need any assistance.
Thank you
I like the size of the buttons. But now the letters need to be smaller, please.
Hello! @domo2 Please follow these steps to add this CSS code:
1. Go to your Online Store
2. Click on "Themes"
3. Select "Edit code"
4. Open your CSS file. If you have a custom CSS file, open that instead.
5. If you can't find your custom CSS file, open "base.css"
6. Add the following code at the end of the file.
body product-info .product-form__input--pill input[type=radio]+label {
padding: 1rem;
width: 4.5rem;
}
If you need further assistance, please let me know. If you found my help useful, consider liking this message and marking it as the solution.
Hello @domo2 , Please add this CSS in assets/component-product-variant-picker.css file
.product-form__input--pill input[type=radio]+label {
border: var(--variant-pills-border-width) solid rgba(var(--color-foreground), var(--variant-pills-border-opacity));
background-color: rgb(var(--color-background));
color: rgba(var(--color-foreground));
border-radius: var(--variant-pills-radius);
color: rgb(var(--color-foreground));
display: inline-block;
margin: .7rem .5rem .2rem 0;
padding: 0.5rem 1rem;
font-size: 1.4rem;
letter-spacing: .1rem;
line-height: 1;
text-align: center;
transition: border var(--duration-short) ease;
cursor: pointer;
position: relative;
}
I make a change in the padding of it from "padding: 1rem 2rem;" to "padding: 0.5rem 1rem;"
Best Regards,
Darshan Prajapati
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025