• Resolved superflippy

    (@superflippy)


    The default empty cart message does not match our site at all. I want to replace the sad face and link with a custom message. I’m using the Storefront theme with a child theme (storefront-child).

    I placed the following in my functions.php and nothing happens.

    remove_action( 'woocommerce_cart_is_empty', 'wc_empty_cart_message', 10); 
    add_action( 'woocommerce_cart_is_empty', 'custom_empty_cart_message', 10); 
    function custom_empty_cart_message() {
        echo '<p> Your cart is empty. </p>'; 
    }

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

Viewing 1 replies (of 1 total)
  • Thread Starter superflippy

    (@superflippy)

    Never mind, I finally figured it out! I was using the Shopping Cart Block for the cart page content. It has tabs in it & you have to click the Empty Cart tab to change the content & wording.

Viewing 1 replies (of 1 total)
  • The topic ‘Change Default Empty Cart Message’ is closed to new replies.