Remove Email-Button - by Royalty - on WordPress WooCommerce support

This topic has 4 replies, 2 voices, and was last updated 5 years, 2 months ago ago by Rose Tyler

  • Avatar: Royalty
    Royalty
    Participant
    August 22, 2019 at 20:23

    Hello,
    I removed the “Email to a friend”-Button on single product page by adding this code to my childtheme’s functions.php:
    remove_action( 'woocommerce_single_product_summary', 'et_email_btn', 36 );
    After updating to Royal 6.0.0 or 6.0.1., the email buttons shows up again, although the action code is the same.
    Could you please tell me how to remove this button again?
    Many thanks in advance!

    3 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 23, 2019 at 09:37

    Hello,

    Please change the previous code to:

    add_action('wp', 'et_template_hooks_custom', 30);
    function et_template_hooks_custom() {
    	remove_action( 'woocommerce_single_product_summary', 'et_email_btn', 36 );
    }

    Regards

    Avatar: Royalty
    Royalty
    Participant
    August 23, 2019 at 12:54

    Perfect, thank you!

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 23, 2019 at 13:03

    You’re welcome!

    Regards

  • Viewing 4 results - 1 through 4 (of 4 total)

The issue related to '‘Remove Email-Button’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.