By default, the WooCommerce mini-cart doesn’t even have a title. This quick guide shows you how you can add custom content to the very top of the mini-cart. If you find your custom text isn’t quite displaying at the top, tweak the priority number in the code. You’ll be wanting to use HTML and CSS to style the title as desired.
/**
* Snippet Name: WooCommerce add content to the top of the mini-cart.
* Snippet Author: ecommercehints.com
*/
function ecommercehints_minicart_top_content() {
echo 'My Basket';
};
add_action( 'woocommerce_before_mini_cart', 'ecommercehints_minicart_top_content', 10 );