Hi there,
I need to add a custom Breadcrumb to my WooCommerce product pages as the standard one links back to Category pages that I don't use.
I need the breadcrumb to be:
You are here: Home > Products > Product Name
The code below displays the page/product title separately to the breadcrumbs …
add_action( 'woocommerce_before_single_product_summary', 'enfold_customization_woocommerce_extra_text', 1);
function enfold_customization_woocommerce_extra_text(){
echo '<p id="breadcrumbs" style="padding-top:0px; padding-bottom:20px;">You are here: <a href="/">Home</a> / <a href="/products">Products</a> / <strong></strong></p>';
wp_title('');
}
However, I need to incorporate wp_title(''); into the above <p> between the <strong> tags.
When I've tried this, it doesn't work. What do I need to change to get this to work?
Many thanks,
R