If you are using WooCommerce on your WordPress website you may want to remove the breadcrumbs from the products on there. If you want to do that without a plugin you can then add this code to your functions.php file. You may want to backup your WordPress website before you make updates to the file on there.
Remove WooCommerce breadcrumbs
/** * Remove product breadcrumbs * * @author WPSnacks.com * @link https://www.wpsnacks.com */ function remove_woo_breadcrumbs() { remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0 ); } add_action( 'init', 'remove_woo_breadcrumbs' );
Now if that works for you it would remove the breadcrumbs from the WooCommerce products on there.
Leave a Reply