How to disable breadcrumbs from homepage?

#203982
  • Resolved Danukaprasad
    Rank Math free

    I have recently added breadcrumbs to my WordPress website and the breadcrumbs are in everywhere. I want to remove breadcrumbs from my homepage since it is not necessary in there. How can I remove it from my homepage?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Ankit
    Rank Math business

    Hello,

    Thank you for contacting the support and sorry for any inconvenience that might have been caused due to that.

    I can’t find Rank Math breadcrumbs on your homepage. I have shared a screenshot link inside the sensitive data section.

    Maybe you saw the cached version of your website. Please try to clear the web browser cache and re-check on your end.

    Looking forward to helping you. Thank you.

    Yes. Because I removed the php code from theme editer (header section) and used the css class to add breadcrumbs on sidebar of posts. But I want to make it below or above the title of my posts.

    Ankit
    Rank Math business

    Hello,

    Thank you for your reply.

    You can use the following code to display the breadcrumbs on website except for the homepage:

    <?php
    
    if (function_exists('rank_math_the_breadcrumbs') && !is_home()){
      rank_math_the_breadcrumbs();
    }
    ?>

    Looking forward to helping you. Thank you.

    Where should I put the code. I really had no idea before so I put it at the very bottom of the header section in theme editor.

    Prabhat
    Rank Math agency

    Hello,

    Thanks for your reply.

    You can add the breadcrumbs code in your theme’s single.php file.

    To display the breadcrumbs above the title of the post, usually, you can add the breadcrumbs code below the get_header() function.

    But, this may vary on a theme-to-theme basis. You can try adding the code below the get_header() function and see if that brings you the desired output.

    Please let us know how that goes.

    Thank you.

    That didn’t work, I tried both codes from the rank math and the code given by you guys in here. both didn’t work. I cleared the cache and still it does not display the breadcrumbs. What do I do now?

    Hello,

    Thank you for keeping in touch with us.

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)

The ticket ‘How to disable breadcrumbs from homepage?’ is closed to new replies.