[Resolved] Breadcrumbs Yoast / Woo

  • Author
    Posts
  • #13389

    tommy
    Participant

    Hi
    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

    #13390

    Andrew Misplon
    Keymaster

    Hi 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.

    #13391

    tommy
    Participant

    thanks a lot 🙂

    #13396

    Andrew Misplon
    Keymaster

    For sure 🙂 Glad I could help.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Scroll to top