Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1263545

    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.

    #1263725

    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

    #1264038

    Hi Rikard, yes, it’s just the right one

    #1264225

    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.