Home Forums Kadence Theme Add yoast breadcrumbs to woo archive pages

This topic is: resolved
Resolved
Posted in: Kadence Theme  
  • July 31, 2020 at 6:18 am #253974

    Hi!

    I’ve added the yoast breadcrumbs to product pages like this:
    add_action( 'woocommerce_before_single_product_summary', 'add_yoast_breadcrumbs', 5 );
    function add_yoast_breadcrumbs() {
    if ( function_exists('yoast_breadcrumb') ) {
    yoast_breadcrumb( '<p id="breadcrumbs">','</p>' );
    }
    }

    But how do I add it to product archive pages? I can’t find a suitable hook?

    Thanks,

    BenA

    Sorry, this forum is for Premium customers only. Please Login to continue

    If you are using a free theme you can access support on wordpress.org by searching for the free theme and using the support tab.