Breadcrumb custimzation fails with YOAST SEO12.8.1
-
Hi all,
I did a breadcrumb customization on a WP-site with an Avada-Child-theme by using a filter/hook in functions.php. I took this from Custom Yoast Breadcrumbs URL – WordPress Development Stack Exchange and changed it to my needs.functions.php
// Hook to the filter
add_filter(‘wpseo_breadcrumb_links’, ‘wpseo_332125_breadcrumbs’);function wpseo_332125_breadcrumbs($links) {
if ( is_singular( ‘avada_portfolio’ ) ) {… just altering breadcrumbs in the CPT avada_portfolio …
… setting some variables used then in the customization part of the script…$links[1] = array(‘text’ => $ref_text, ‘url’ => $referenzen, ‘allow_html’ => 1);
$links[2] = array(‘text’ => $kat_text, ‘url’ => $referenzen.$kategorie, ‘allow_html’ => 1);
$links[3] = array(”,”,’allow_html’ => 1);
}
return $links;
}Everything went fine with YOAST SEO 12.8, where I initially did the work. But when I updated to 12.8.1 my custom breadcrumbs disappeared and the default breadcrumbs of the theme are shown again.
Switching back to v12.8 instantly let my customized breadcrumbs reappear again.
Could this be a side effect of the newest update? Please debug that, this is such a valuable function!
Any response is greatly appreciated! Thanx in advance
Christian
- The topic ‘Breadcrumb custimzation fails with YOAST SEO12.8.1’ is closed to new replies.