Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #862549

    Hi Team,

    how can i hide the add to cart button on a product grid or shop page, not on the product page.

    Hope you can help

    Alexander

    • This topic was modified 7 years, 1 month ago by alexandernoe.
    #862600

    Hey Alexander,

    You want to hide it on the page you linked us to? The button under the price?

    Best regards,
    Jordan Shannon

    #862606

    Yes and also on the shoppage

    Best regards

    Alexander

    #862614

    Hey!

    Please try adding following code to Functions.php file in Appearance > Editor

    
    remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart' );
    

    Cheers!
    Yigit

    #862672

    Hi Yigit,
    that was not the trick. ;-)
    Inside the private area i give u the login credentials for an easier research.
    I found into the forum different solutions but they did not work.
    The page is simple build with an product grid with a category filter.
    Hope you can help…Enfold Yedi ;-)
    Alexander

    #863717

    Hi,

    Thank you for the info.

    Please add this code in the Quick CSS field to hide the add to cart buttons.

    #top.page .add_to_cart_button {
        display: none !important;
    }

    Best regards,
    Ismael

    #863821

    Hi team,
    YOU are the very best! Code works…many thanks!!! Job done. :-)
    Alexander

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘How can i hide "Add to cart" button’ is closed to new replies.