Tagged: x
-
AuthorPosts
-
January 28, 2017 at 9:00 pm #1349229
Kevin CParticipantHi,
I would like to hide the above texts in my shop catalog page, showing it only at the product page. Please advise what CSS/JS I may use.
January 29, 2017 at 1:23 am #1349357
Kevin CParticipantDid some research on this forum and found this.
p.stock.out-of-stock {
display: none;
}p.stock.in-stock {
display: none;
}What should I edit to have this css working on catalog/main shop page only and the product page can still show the stock information?
January 29, 2017 at 2:17 am #1349384
ChristopherModeratorHi there,
Please update your code to :
.archive.woocomerce p.stock.out-of-stock, .archive.woocomerce p.stock.in-stock { display: none; }Hope it helps.
January 29, 2017 at 3:00 am #1349405
Kevin CParticipantHi Christopher,
It works great! Just need to change woocomerce to woocommerce.
Any chance that you will know how to display the text “Sold out” at the size drop down box at my product page?
Checked some sites and seem like it’s not easy.
January 29, 2017 at 5:10 am #1349466
ChristopherModeratorHey there,
Thanks for writing in! Regretfully this isn’t a feature offered by X. It could be possible with custom development, but this would be outside the scope of support we can offer. You may wish to consult a developer to assist you with this. X is quite extensible with child themes, so there are plenty of possibilities. Thanks for understanding. Take care!
January 31, 2017 at 8:55 am #1352298
Kevin CParticipantHi Christopher,
Thanks!
I noticed that the above code doesn’t work on my mobile (iPhone), is there any special code for mobile?
January 31, 2017 at 10:27 am #1352436
RupokMemberHi there,
Thanks for writing back. It should work for all device, Perhaps there is cache on your phone browser. I have tested with mobile and it’s not showing.
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1349229 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
