Site logo

[Resolved] How to hide prices everywhere on an online store ?

Home Forums Support [Resolved] How to hide prices everywhere on an online store ?

Home Forums Support How to hide prices everywhere on an online store ?

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #2447380
    Patricia

    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

    #2447382
    Leo
    Staff
    Customer Support

    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 🙂

    #2447384
    Patricia

    Hello Leo,
    Unfortunately I can’t refer you to the site, I’m building it locally on my computer 😬

    #2447385
    Patricia

    Sorry, Lion, not Leo..

    #2447387
    Leo
    Staff
    Customer Support

    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.

    #2447388
    Patricia

    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.

    #2447398
    Patricia

    J’essaie de vous faire passer les photos par l’espace privé..

    #2447402
    Patricia

    Here’s a category page. The first was the homepage

    #2447426
    Leo
    Staff
    Customer Support

    Screenshots don’t help unfortunately.

    Can you create a staging site?

    Thanks!

    #2448448
    Patricia

    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

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.