A thing or two you need to know about Genesis breadcrumbs Blog

This PHP code should do all the talking ..

if ( function_exists( 'bcn_display' ) ) {
echo '<div class="breadcrumb" itemprop="breadcrumb">';
bcn_display();
echo '</div>';
}
elseif ( function_exists( 'yoast_breadcrumb' ) ) {
yoast_breadcrumb( '<div class="breadcrumb">', '</div>' );
}
elseif ( function_exists( 'breadcrumbs' ) ) {
breadcrumbs();
}
elseif ( function_exists( 'crumbs' ) ) {
crumbs();
}
else {
genesis_breadcrumb();
}

Meaning .. there are many functions that may or may not display breadcrumbs. In our case the client had enabled Genesis breadcrumbs and used Yoast SEO plugin. The only problem was .. Yoast's breadcrumb settings were set to OFF, resulting in non functional breadcrumbtrails ..


Suggestie? Vraag of opmerking? Laat het ons weten!

Plaats hier je bericht

Reacties (0)