Shopify themes, liquid, logos, and UX
Hello. How to edit the product page to have a little gap between product variants and quantity?
Link: https://holycup.lt/collections/indu-kolekcija/products/stikliniai-siaudeliai-wavy
Thank you!
Solved! Go to the solution
This is an accepted solution.
Hi @manter
In your base.css file it was set 0 margin. You can edit it if not let me know.
From the admin > online store > select themes > edit code > Find the Asset folder and look for Base.css file.
Click open and find this code below.
You can also search by line numbers.
And add the size you like example below.
Then Save.
Result:
This is an accepted solution.
Hi @manter
In your base.css file it was set 0 margin. You can edit it if not let me know.
From the admin > online store > select themes > edit code > Find the Asset folder and look for Base.css file.
Click open and find this code below.
You can also search by line numbers.
And add the size you like example below.
Then Save.
Result:
Hi @manter,
You can follow these steps to make a little gap between the quantity and the product variants
1, Open Online Store > Theme > Edit Code
2. Search and open theme.css, base.css, custom.css, or styles.css
3. Paste the code snippet below to the bottom of the file and hit save (this code only updates the display on mobile view since the larger view doesn't have the variants sit on top of the quantity)
@media (max-width: 575px) {
.tt-product-single-info .tt-wrapper .tt-input-counter {
margin-top: 20px;
}
}
Here is the result
Hope this helps you solve the issue.
Please don't forget to Like and Mark it as an Accepted Solution if you find this 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
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