Hello,
Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.
I have checked your page but it does not look like the page is using Rank Math breadcrumbs. I can suggest that you disable the theme breadcrumbs and enabled the Rank Math breadcrumbs by adding the following snippet of code to your theme:
<?php if (function_exists('rank_math_the_breadcrumbs')) rank_math_the_breadcrumbs(); ?>
Looking forward to helping you. Thank you.
Thanks for the reply, I am using Genesis theme, and have disabled breadcrumbs, so they are now gone.
Do I add this code to functions.php as I tried this and it threw a big error on the page?
I have fixed it by adding this to my functions.php
add_filter( ‘the_content’, function( $content ) {
if( function_exists( ‘rank_math_get_breadcrumbs’ ) ) {
$content = rank_math_get_breadcrumbs() . $content;
}
return $content;
});
Please advise if this is correct ?
It’s working
HI Roger,
Thanks for the reply.
Your workaround is correct if you want to append the breadcrumbs to the post content. If this works right for you, then you can keep using this method.
For more flexibility on the location of the breadcrumbs, we recommend adding the snippet on the single.php page template on your theme.
I hope this info helps.