All things Shopify and commerce
Does someone know how i remove this number?
https://sharptooling.eu/products/hw-versofix-knives?variant=49073602724168
Solved! Go to the solution
This is an accepted solution.
Hey @Disholt,
To hide the number from the store, please add the below code at the bottom of the theme.liquid file just before the closing body tag:
{% if template contains 'product' %}
<style>
.quantity__input:not([data-quantity-variant-id]) { display: none !important }
</style>
{% endif %}
Once you have made this change try checking your store, to verify the changes. In your case it would look like:
If my response helped you, please consider giving it a like (👍) and marking it as an accepted solution if it resolved your issue. Your feedback helps other community members with similar questions.
Thank you!
Regards,
Abhishek from Swym
Hello @Disholt
1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find Asset > theme.min.css and paste this at the bottom of the file:
input#Quantity-template--22245588107592__quick_order_list_3AtKqm {
display: none;
}
i do not have theme.min.css
This is an accepted solution.
Hey @Disholt,
To hide the number from the store, please add the below code at the bottom of the theme.liquid file just before the closing body tag:
{% if template contains 'product' %}
<style>
.quantity__input:not([data-quantity-variant-id]) { display: none !important }
</style>
{% endif %}
Once you have made this change try checking your store, to verify the changes. In your case it would look like:
If my response helped you, please consider giving it a like (👍) and marking it as an accepted solution if it resolved your issue. Your feedback helps other community members with similar questions.
Thank you!
Regards,
Abhishek from Swym
Thank you, i have added this to theme.liquid, but this is not working for me
Hey @Disholt
Can you please share a screenshot with me here, just want to see how you have added the code as the code is not showing up on the store.
Also, have you added the code as shown in the screenshot below? If not then please do it as shown in the screenshot below:
Thanks
yes i have it like this.
Yeah, that's perfect. Please save it and preview your store.
thank you, forgot to save the file in the first place.
Hi,
That’s great to hear everything is working now! It looks like the issue was due to the changes not being saved earlier.
If my response helped you please consider it as an accepted solution.
Thanks,
Abhishek from Swym
sorry boss!
Hey 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, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024