I want to customise the output of Yoast SEO breadcrumbs, I have this so far which works great: add_filter( 'wpseo_breadcrumb_single_link', 'ss_breadcrumb_single_link', 10, 2 ); function ss_breadcrumb_single_link( $link_output, $link ) { $element = 'li'; $element = esc_attr( apply_filters( 'wpseo_breadcrumb_single_link_wrapper', $element ) ); $link_output = '<' . $element . ' typeof="v:Breadcrumb">'; if ( isset( $link['url'] ) && ( $i < ( count(...
Originally asked by showFocus on Stack Exchange (wordpress) (CC BY-SA 4.0).