How to Edit a Breadcrumb Item in WooCommerce?

in #wordpress4 years ago

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.

Coin Marketplace

STEEM 0.21
TRX 0.25
JST 0.038
BTC 95691.61
ETH 3343.89
USDT 1.00
SBD 3.03