How to Edit a Breadcrumb Item in WooCommerce?

in #wordpress2 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.18
TRX 0.05
JST 0.022
BTC 17037.43
ETH 1262.94
USDT 1.00
SBD 2.11