-
Hello,
I use the Divi Theme and have the Rankmath Breadcrumbs activated. and they are displayed. But I have the following issues:
1. I want to hide the Breadcrumb shown on the Homepage. I have actually the following snippet in the header.php:
add_filter( ‘the_content’, function( $content ) {
if( function_exists( ‘rank_math_get_breadcrumbs’ ) ) {
$content = rank_math_get_breadcrumbs() . $content;
}
return $content;
});I found now here in the Support Forum the following snippet what should hide the Breadcrumb on the Homepage:
<?php if (function_exists(‘rank_math_the_breadcrumbs’) && !is_home() && !is_front_page()) rank_math_the_breadcrumbs(); ?>
But if I replace the first snippet with the second snippet, the website is not accessible.
Can you please let me know, how do i merge the 2 snippets to get it work?
2. I get the Breadcrumbs also shown in the Posts, but the problem is, that they inserted after the Featured Images of the Posts, and I would like to display them inside the Posts before the Post Titles, like actually on my website, how can I do that?
Thanks a Lot!
Best regards
Sally
You must be logged in to reply to this ticket.