• Resolved masurana

    (@masurana)


    Sir,
    I want to Remove -“Product was successfully added to cart” message bar.How can I do this.Please help me.
    Thanks.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Rynald0s

    (@rynald0s)

    Automattic Happiness Engineer

    Howdy!

    You can use the following line of code:

    add_filter( 'wc_add_to_cart_message_html', '__return_empty_string' );

    This line code should be added to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as Code Snippets. Please don’t add custom code directly to your parent theme’s functions.php file as this will be wiped entirely when you update.

    Cheers!

    Rynald0s

    (@rynald0s)

    Automattic Happiness Engineer

    Howdy!

    We haven’t heard back from you in a while, so I’m going to go ahead and mark this thread as resolved. If you have any other questions please start a new thread.

    Cheers!

    Thread Starter masurana

    (@masurana)

    OK. Thanks for your support.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Remove Default message bar’ is closed to new replies.