How to Edit a Breadcrumb Item in WooCommerce?
In WooCommerce, you can create shop, category, tag, single product breadcrumbs. These breadcrumbs generally follows WooCommerce permalink settings. In WordPress > Permalinks, you can select the ‘shop base with category’ option. Doing so, you will see a product with an ‘uncategorized’ category. The URL of the same will be “https://your-website.com/shop/uncategorized/product-name/”. Also, the single product breadcrumbs will be “Home/Shop/Uncategorized/Product Name”. In this article, you will learn how to edit a breadcrumb item in WooCommerce.
You can alter the breadcrumb name using a simple woocommerce_get_breadcrumb filter. With this filter, one can change breadcrumb content. Furthermore, you will learn to add a prefix to the WooCommerce product category. Also, you will see how to replace the product name with the SKU.