-
AuthorPosts
-
July 3, 2015 at 7:34 am #320144
mmoonParticipantI’d like to remove the quantity selector from the single product page.
I have used the css below, but this also removes the quantity selector from the cart page.
How do I remove it only from the single product page but keep it on the cart page?.woocommerce .quantity input[type=”number”], .woocommerce-page .quantity input[type=”number”] {
display:none; margin:0; padding 0;
}Thank you!
July 3, 2015 at 2:51 pm #320411
Nabeel AModeratorHi there,
Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
July 3, 2015 at 11:32 pm #320654
mmoonParticipantThe dev site is here > http://www.tibetanmalashop.com/meditation-beads/
July 4, 2015 at 6:27 am #320845
ThaiModeratorHi There,
Thanks for writing in!
Try adding following CSS under Appearance > Customize > Custom > CSS:
.single-product .quantity input[type="number"] { display: none; }Hope it helps.
July 5, 2015 at 12:03 am #321168
mmoonParticipantThank you, i got it working with:
.woocommerce-page .single-product .quantity input[type=”number”] {
display: none;
}July 5, 2015 at 2:05 am #321229
Rue NelModeratorHey There,
You are most welcome!
It’s good to know that you’ve got it working.If there’s anything else, we can help you with, please let us know.
All the best.
July 5, 2015 at 7:25 am #321358
mmoonParticipantYes there’s one more thing:
On the single product page where there is a variation (ie. “Choose an option” drop down) the quantity selector is still showing, how do I remove it?July 5, 2015 at 7:55 am #321371
ThaiModeratorHi There,
Please try following CSS:
.single-product .quantity input[type="number"] { display: none !important; }Let us know how it goes!
July 6, 2015 at 12:34 am #321843
mmoonParticipantPerfect! Thank you
July 6, 2015 at 12:46 am #321850
Rue NelModeratorYou are most welcome!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-320144 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
