-
Hello good, I was writing because I can not remove the breadcrumbs from my home page of my website in wordpress, the template I use is Hestia, and the version of my wordpress is 6.2.2
-
Hello,
Thank you for contacting Rank Math support.
If you want to remove the breadcrumbs from your site, you can do it by following these steps:
- Go to Rank Math > General Settings > Breadcrumbs in your WordPress dashboard.
- Disable the Enable Breadcrumbs option and save your settings.
- If you have added any code or shortcode to display the breadcrumbs on your site, remove them as well.
That’s it. You should no longer see the breadcrumbs on your site.
I hope this helps you. If you have any questions or need more assistance, please let me know. I’m always here to help.
Thank you for using Rank Math.
Hello good, I think I did not explain myself well, I meant to remove the breadcrumbs only from the home page of my website, but keep them in the rest of entries and articles, is there any possibility to do that?
Hello,
You can try replacing the current code snippet you have for the breadcrumbs with this one to display the breadcrumbs everywhere except the homepage:
if ( function_exists('rank_math_the_breadcrumbs') && !is_home() ) { rank_math_the_breadcrumbs(); }
If the above one doesn’t look to be working for you, please try the below one instead:
<?php /** Show Rank Math Breadcrumbs on all pages except the homepage **/ if ( function_exists('rank_math_the_breadcrumbs') && ( !is_home() && !is_front_page() ) ) { rank_math_the_breadcrumbs(); }?>
Hope that helps, and please do not hesitate to let us know if you need our assistance with anything else.
Hello good, I have tried with the code you have provided me and when I put it in the functions.php file the background image of my home page is not configured and the resolution is changed and also the breadcrumbs disappear from the articles.
Actually this is the code I have for the breadcrumbs:
function rm_breadcrumbs( $content ) {
if ( function_exists(‘rank_math_the_breadcrumbs’) && is_singular() ) rank_math_the_breadcrumbs();
return $content;
}
add_filter( ‘the_content’, ‘rm_breadcrumbs’ );Hello,
The breadcrumbs code should be pasted in your theme’s single.php or header.php file. You can also refer to our guide here:
https://rankmath.com/kb/breadcrumbs/#add-breadcrumbs-themeThe breadcrumbs code needed to be relocated within the theme structure and this would depend on how your theme structure is created.
You also may contact your theme author as they are in the best position to help you place your breadcrumbs code in your preferred location.
Hope that helps.
Thank you.
Hello good, thank you very much for the explanation, unfortunately the breadcrumbs are still not working, I have tried everything you have told me and nothing, now I will talk to the support of my template to see if they can help me to place the crumbs correctly.
I have investigated by myself and I have managed to put it, thank you very much for the support, I add the links and some steps of how I have achieved it:
1º visit this page: https://docs.themeisle.com/article/1347-add-rankmath-breadcrumbs-in-hestia
2º Go to the file editor of the Hestia theme and find the file content-single.php
3º Inside the file content-single.php place the code in bold in the inside of the div
<?php
/**
* The default template for displaying content
*
* Used for single posts.
*
* @package Hestia
* @since Hestia 1.0
*/$default = hestia_get_blog_layout_default();
$sidebar_layout = apply_filters( ‘hestia_sidebar_layout’, get_theme_mod( ‘hestia_blog_sidebar_layout’, $default ) );
$wrap_class = apply_filters( ‘hestia_filter_single_post_content_classes’, ‘col-md-8 single-post-container’ );
?><article id=”post-<?php the_ID(); ?>” class=”section section-text”>
<div class=”row”>
<?php
if ( ( $sidebar_layout === ‘sidebar-left’ ) && ! is_singular( ‘elementor_library’ ) ) {
get_sidebar();
}
if (function_exists(‘rank_math_the_breadcrumbs’)) rank_math_the_breadcrumbs();?>
<div class=”<?php echo esc_attr( $wrap_class ); ?>” data-layout=”<?php echo esc_attr( $sidebar_layout ); ?>”><?php
4º The breadcrumbs should appear at the beginning of each article but not in the main page.
Hello,
Thank you for the update and sharing the complete step to apply it on that theme.We are super happy that this issue is already resolved. If you have any other questions in the future, know that we are here to help you.
If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.
If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.
Thank you.
The ticket ‘I can’t remove the breadcrumbs from my home page of my wordpress website.’ is closed to new replies.