A user seeks help positioning the quantity selector on the same line as the “Add to Cart” button in Shopify’s Impulse theme. A community member provides a CSS solution that involves:
Solution Steps:
Navigate to Online Store → Theme → Edit code
Open Asset → theme.scss.liquid
Add custom CSS code at the bottom to reposition elements using absolute positioning and width calculations
Key CSS adjustments:
Position quantity selector absolutely with negative margin
Adjust cart button width to accommodate quantity selector
Modify padding for quantity input fields
Multiple users successfully implement variations of this code for different themes (Impulse, Debut, Avenue, Brooklyn, Supply). Some encounter issues:
Quantity buttons losing functionality
Layout conflicts with inventory notices
Theme-specific file structure differences
The helper consistently requests store URLs to provide customized solutions for each theme version. Several users report successful implementation, though some require additional adjustments for responsive design and element alignment. The discussion remains active with ongoing requests for theme-specific adaptations, particularly for newer theme versions where file structures have evolved.
Summarized with AI on November 2.
AI used: claude-sonnet-4-5-20250929.
I’m using the Impulse theme and trying to place the quantity selector on the same line as the add to cart button. Could anyone help with this? I’ve tried a few things but unfortunately, couldn’t get this to work myself.
Although this is isn’t a Shopify theme and I am not able to send this over to my themes team to get this customized for you, I did want to give you a note of information that you might find helpful if you don’t find an answer for this in this forum thread.
Even though our themes team won’t be able to help you, our Shopify Experts should be able to customize this for you. There is a fee associated with them, but they are very talented.
Do you mean re-positioning the buttons and the quantity selector like this? If that’s the case, I suggest you try this pre-made template. The template is a ready-made product page template, but you can also adjust the color, spacing, or positions of the elements, without coding.
It’s a free template from PageFly. You can view the full version of it here.
Thank you - I changed it a little to make it the same width as the add to bag button. But as you can see below, when i click plus or minus it does not change the quantity and it has now removed the functionality of my cart drawer popping out on the side when i click add to bag.
Strangely, when i removed “inventory notice” button for the product page it moved the quantity bar. Do you know how to fix this or make it relative so that for the inventory notice button if certain products are low on inventory it does not move the quantity button?