Hello @deranged_dev,
Thank you for contacting the support.
You need to add the code in the functions.php of your theme.
Not sure which theme you are using on your website but you can try the following code in the functions.php file (you can place it at the end):
Use the following code to add Breadcrumbs above the content or below the title
add_filter( 'the_title', function( $title ) {
if( function_exists( 'rank_math_get_breadcrumbs' ) ) {
$title .= rank_math_get_breadcrumbs();
}
return $title;
});
Above the content:
add_filter( 'the_content', function( $content ) {
if( function_exists( 'rank_math_get_breadcrumbs' ) ) {
$content = rank_math_get_breadcrumbs() . $content;
}
return $content;
});
Hope that helps. Thank you.
How about at top of page/post after headers and navigation.
What would that functions code look like?
Hello @familyman82
You will have to check if your theme provides any hook or filter to insert the code at a specific location.
You can also use the_title or the_content filter to add Breadcrumbs below the title or above the content.
Hope that helps. Thank you.
P.S. Always open a new support topic instead of replying on someone’s else topic. That is not a preferred method to seek help.