Archived topic
How to hide prices everywhere on an online store ?
9 replies · Started by Patricia on December 2, 2022
Hello,
I am making an online store with the template "decor" for a client and he wants to hide the prices.
I would like to do it without plugin.
I succeeded on the product sheets that I had modified with Elementor, but the price remains displayed on the category pages and the automatic product display modules on the home page, for example (popular products, etc...)
Could you give me a snippet and explain me the procedure please?
Many thanks in advance
Patricia
Hi there,
Any chance you can link us to the page in question?
You can use the private information field:
https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
Let me know :)
Hello Leo,
Unfortunately I can't refer you to the site, I'm building it locally on my computer 😬
Sorry, Lion, not Leo..
Try this CSS:
.wc-block-grid__products .price {
display: none;
}
If this doesn't help then I'll need to see the page in question.
Thanks for your understanding.
I found this code on the internet and it doesn't work, unfortunately.
I'm not mistaken, it's in appearance-->customize-->additional CSS that I have to put it?
I can try to make a picture of the code, but I don't know if it will help you.
J'essaie de vous faire passer les photos par l'espace privé..
Here's a category page. The first was the homepage
Screenshots don't help unfortunately.
Can you create a staging site?
Thanks!
Hello,
I found out how to do it. You just have to insert
remove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_price', 10 );
in the function.php file
Thanks for your reactivity in any case
Good end of day
Patricia