My experience with WooCommerce has led me to the need to include
<br>
within a product name.
However, this break appears differently as
<br />
in the .woocommerce-breadcrumb element.
This is what the breadcrumb currently displays:
<nav class="woocommerce-breadcrumb" itemprop="breadcrumb">
<a href="http://localhost/WP">Home</a>
/
<a href="http://localhost/WP/product-category/guitars/">Guitars</a>
/
<a href="http://localhost/WP/product-category/guitars/electric-guitars/">Electric Guitars</a>
/
<a href="http://localhost/WP/product-category/guitars/electric-guitars/fender-electric-guitar/">Fender-123-electric-guitar</a>
/ Fender American Standard<br /> Stratocaster Sienna Sunburst
</nav>
In the browser, the last line before the nav shows the break as < br / > literally.
Currently, I am attempting a solution to remove it, but it interferes with the breadcrumb's functionality!
$(function() {
$( '.woocommerce-breadcrumb' ).text(function(_,txt) {
return txt.split('<br />').shift();
});
});
Any suggestions or advice would be greatly appreciated!
Thank you!