Home Forums WoodMart support forum Remove “add to cart” link from product pages

Remove “add to cart” link from product pages

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #486642

    veptune
    Participant

    Hello,

    In theme settings, I have set up to not display the “add to cart” button.

    But the link is still there, I can see it when I view the HTML source :

    <a href=”?add-to-cart=20140″

    How to totally remove it? I ask, because those links are indexed by Google…

    I tried to put this on the functions.php, but add to cart links are still there :

    remove_action( ‘woocommerce_after_shop_loop_item’, ‘woocommerce_template_loop_add_to_cart’);

    (https://rudrastyh.com/woocommerce/remove-add-to-cart-button.html)

    I was wondering if it was because of somethingĀ in the theme, because it seems this method works when the theme is disabled.

    Any ideas?
    Thanks

    #486729

    Hello,

    You can enable the catalog mode if you want to hide the add to cart button from everywhere. Go to Theme Settings >> Shop>> CATALOG MODE >> Enable catalog mode.

    Best Regards.

Viewing 2 posts - 1 through 2 (of 2 total)