• Hi there,

    I have recent version of woocommerce plugin. I want hide add to cart button from front page.Plugin all shop features such as price, variation should work except add to cart button only.I think it should be some custom css code.

    Please solve the issue.
    Thank you!

    https://wordpress.org/plugins/woocommerce/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    You can use this function to remove “add to cart” button from you Shop page:

    function remove_loop_button() {
    remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 ); }
    add_action('init','remove_loop_button');

    Add this to your theme function.php file.

    Regards

    Thread Starter mushahm

    (@mushahm)

    Hi JovanaV,

    Thank you for your answering, The php code you are given, I insert in function.php file even also our theme shop files. It is not working.

    Thanks!

    Please check out code in one of WordPress default theme.

    Thread Starter mushahm

    (@mushahm)

    I have checked all default theme, But it is not working

    I’m not sure if you understood me. Change your theme to default one, for example twenty fourteen or twenty thirteen, and paste code in that particular theme functions.php file.
    I just tested it and it works.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hide add to cart button using css’ is closed to new replies.