reduce quantity input box

For the mobile version I need to modify the quantity input button size for the single

product page (when you select a product and it opens the button for selecting the quantity is too big)

mohwhi

Hey @sosober

Follow these Steps:

  1. Go to Online Store

  2. Edit Code

  3. Find theme.liquid file

  4. Add the following code in the bottom of the file above tag


RESULT:

If I managed to solve your problem then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

Thank you! Can i also ask you how to reduce the size of both quantity input and cart on mobile version? Because it does not work

Hi @sosober

Check this one.

  1. From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  2. Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  3. In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
.quantity__button {
    width: calc(2.5rem / var(--font-body-scale));
}
.price-per-item__container .quantity {
    width: calc(8rem / var(--font-body-scale) + var(--inputs-border-width) * 2) !important;
}

@media screen and (min-width: 990px) {
    .quantity-popover-container {
        width: 10rem !important;
    }
.quantity-popover-container .quantity {
    width: calc(8rem / var(--font-body-scale) + var(--inputs-border-width) * 2) !important;
}
}

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!