If you want to customize the cross-sell section heading on the WooCommerce Cart page, you can change it with a simple filter.
Steps
- Open your theme’s
functions.phpfile. - Add the code below.
- Save the file.
- Open your Cart page.
Done — the default cross-sell heading will be replaced with your custom text.
function change_cart_cross_sell_heading( $heading ) {
return 'Recommended For You';
}
add_filter(
'woocommerce_product_cross_sells_products_heading',
'change_cart_cross_sell_heading'
);