- This topic has 3 replies, 2 voices, and was last updated 5 years, 1 month ago by Andrew Misplon.
Tagged: Breadcrumbs Yoast WooCommerce
- AuthorPosts
- October 24, 2019 at 8:20 am #13389
tommyParticipantHi
I’ve enabled Yoast SEO with breadcrumbs and they are working fine on pages (like ‘cart’ or ‘my account’)
But on product pages Woo breadcrumbs are displayed instead of Yoast breadcrumbs.
Any how to change all breadcrumbs to Yoast?tommy
October 24, 2019 at 9:13 am #13390
Andrew MisplonKeymasterHi Tommy
Head over to Plugins, search for and install a plugin called Code Snippets. Go to Snippets > Add New, name the snippet as you’d like and insert into the snippet body:
function ultra_child_woocommerce_setup() { remove_action( 'ultra_woocommerce_breadcrumb', 'woocommerce_breadcrumb' ); add_action( 'ultra_woocommerce_breadcrumb', 'ultra_breadcrumb' ); } add_action( 'init', 'ultra_child_woocommerce_setup' );
(Copy this function from the forum, not from an email.)
Select the option to run this snippet on the site front-end, save and activate.
October 24, 2019 at 10:03 am #13391
tommyParticipantthanks a lot 🙂
October 24, 2019 at 3:42 pm #13396
Andrew MisplonKeymasterFor sure 🙂 Glad I could help.
- AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.