Title: Remove Default message bar
Last modified: November 10, 2017

---

# Remove Default message bar

 *  Resolved [masurana](https://wordpress.org/support/users/masurana/)
 * (@masurana)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/remove-default-message-bar/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fremove-default-message-bar%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Rynald0s](https://wordpress.org/support/users/rynald0s/)
 * (@rynald0s)
 * Automattic Happiness Engineer
 * [8 years, 6 months ago](https://wordpress.org/support/topic/remove-default-message-bar/#post-9671098)
 * 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](https://wordpress.org/plugins/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](https://wordpress.org/support/users/rynald0s/)
 * (@rynald0s)
 * Automattic Happiness Engineer
 * [8 years, 5 months ago](https://wordpress.org/support/topic/remove-default-message-bar/#post-9699495)
 * 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](https://wordpress.org/support/users/masurana/)
 * (@masurana)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/remove-default-message-bar/#post-9700820)
 * 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.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [add to cart](https://wordpress.org/support/topic-tag/add-to-cart/)
 * [after](https://wordpress.org/support/topic-tag/after/)
 * [banner](https://wordpress.org/support/topic-tag/banner/)
 * [message](https://wordpress.org/support/topic-tag/message/)
 * [remove](https://wordpress.org/support/topic-tag/remove/)

 * 3 replies
 * 2 participants
 * Last reply from: [masurana](https://wordpress.org/support/users/masurana/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/remove-default-message-bar/#post-9700820)
 * Status: resolved