Add Content to Empty Cart Page in WooCommerce

If you want to enter some content when cart page is empty than here is solutions. Add below line of code in at the end of your theme’s functions.php file of your active child theme (or theme) and Save the file.

add_action( 'woocommerce_cart_is_empty', 'wdo_add_content_empty_cart' );
 
function wdo_add_content_empty_cart() {
echo 'You can add your content here';
}

Leave a Comment

Scroll to Top