Shopify themes, liquid, logos, and UX
I’m using the Impact theme for my Shopify store, and I’d like to move the quantity selector so that it appears directly next to the 'Add to Cart' button on the product page.
Currently, the quantity selector appears above the button, but I want both elements to sit side by side for a cleaner and more user-friendly layout. Could someone guide me on whether I should adjust the theme's code? Any tips on specific HTML, or CSS adjustments would be greatly appreciated.
This is how it looks at this moment:
Thank you!
Solved! Go to the solution
This is an accepted solution.
It would be better to edit the theme's Liquid code.
However, I’ve tried creating a custom CSS code that might help:
@media screen and (min-width: 750px) {
.product-info__block-item[data-block-id="quantity_selector"] {
float: left;
width: 30%;
}
.product-info__block-item[data-block-id="buy_buttons"] {
float: left;
width: 70%;
margin-block-start: 3rem;
}
.product-info__block-item[data-block-id="buy_buttons"] + * {
clear: both;
}
}
This is an accepted solution.
It would be better to edit the theme's Liquid code.
However, I’ve tried creating a custom CSS code that might help:
@media screen and (min-width: 750px) {
.product-info__block-item[data-block-id="quantity_selector"] {
float: left;
width: 30%;
}
.product-info__block-item[data-block-id="buy_buttons"] {
float: left;
width: 70%;
margin-block-start: 3rem;
}
.product-info__block-item[data-block-id="buy_buttons"] + * {
clear: both;
}
}
Savior! Thank you so much, it worked perfectly. I have another question about adding the '-' and '+' to the cart drawer. If you have a solution, I’d greatly appreciate it. Have a great day!
You're welcome—glad it worked perfectly for you!
Currently, I don't have a way to add the '-' and '+' to the cart drawer. I believe this issue would require more complex theme custom coding to handle properly.
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024