I would like to customize the message (text) and color of the messages that appear when the user enters a product or views the cart.
Example: the box that appears after the customer has entered a product.
Hey albertopatrucchi,
Do you mean this? https://imgur.com/a/jEE40Vs. If not then please try to explain a bit further, or post a screenshot of what you would like to change.
Best regards,
Rikard
Hi Rikard, yes, it’s just the right one
Hi,
Thanks for the update. Please add this to your functions.php file in order to change the text:
add_filter( 'wc_add_to_cart_message_html', 'albertopatrucchi_custom_add_to_cart_message' );
function albertopatrucchi_custom_add_to_cart_message() {
$message = 'This is your new text' ;
return $message;
}
Then add this to Quick CSS and change the colours to your liking:
#top div.woocommerce-message {
border-color: #8BAF5B;
background-color: #E0F1B5;
color: #4F5F39;
}
Best regards,
Rikard
