how to display breadcrumbs above the post title

#173623
  • Resolved Palate’s Desire
    Rank Math pro

    Hey I did add Rankmath breadcrumbs , turning off my theme’s breadcrumbs. Rankmath breadcrumbs displays after the post title and not before . Is there any way out to make it display above the post title?

    I have used this code in my genesis child theme’s function.php

    /*
    * Add Rank Math Breadcrumbs just before the Single Post Content.
    */
    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’ );

    Thanks

Viewing 15 replies - 1 through 15 (of 16 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for the delay and for any inconvenience this issue may have caused you.

    You can paste the Breadcrumbs code in your theme’s header file if you want it to be displayed before your posts/pages title:

    <?php if (function_exists('rank_math_the_breadcrumbs')) rank_math_the_breadcrumbs(); ?>

    I hope that helps. Thank you, and looking forward to your update.

    hey should I just need to add this code in theme header.php and delete the one in function.php?

    Prabhat
    Rank Math agency

    Hello,

    Thanks for your reply.

    Yes, you can remove the breadcrumbs code from your theme’s functions.php file and add it to the header.php file of your theme.

    Please let us know how that goes.

    Thanks.

    Hey I can not add this , it throws me an error on genesis theme header.php file

    Prabhat
    Rank Math agency

    Hello,

    We regret the trouble you’re facing.

    If you’re pasting the breadcrumbs code inside a PHP section, then please remove the opening and closing PHP tags from the breadcrumbs code and see if you’re able to update the file.
    if (function_exists('rank_math_the_breadcrumbs')) rank_math_the_breadcrumbs();

    Please let us know how that goes.

    Thanks.

    Thank You , I was able to update file , its working fine.

    Hello,

    We are super happy that this resolved your issue. 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.

    Hi ,
    Recent update of Breadcrumbs on header.php seems displaying only on desktop and not visible on mobile.

    Hello,

    Thank you for the follow-up, and sorry for the delay.

    Could you please try clearing your website and browser’s cache to see the changes? If the issue still persists, please also share the affected URL to further investigate.

    Thank you, and looking forward to helping you.

    Hi ,
    Hey I tried clearing cache website and browers’s cache. Its still the same.

    I’m using genesis , foodie pro theme with feast plugin

    With breadcrumbs code inserted into function.php , it was working well both on desktop and mobile.

    With code being inserted on header.php , its working only on desktop.

    Here is my affectd url http://www.palatesdesire.com

    Thank You

    Any solution? Its not working on both tablet and mobile . Eagerly wating for a solution. Thank you

    Hello,

    Thank you for the follow-up, and sorry for the delay.

    I’ve checked your site, and indeed the breadcrumbs are getting removed when accessed using mobile. In this case, you may need to get in touch with your theme provider to help you with CSS customization for the breadcrumbs to still show for various screen sizes like mobile phones.

    I hope that helps. Thank you, and please don’t hesitate to contact us anytime if you need further assistance with anything else.

    Hey , Thank You. Will reachout for my theme provider and will update the same .

    Prabhat
    Rank Math agency

    Hello,

    Thanks for your reply.

    Sure, please let us know how that goes.

    Also, if you have another question, please feel free to reach out, and it will be our pleasure to assist you.

    Thank you.

    Thanks for all your support. My theme provider denied to provide any kind of support as they said they don’t recommend or support rankmath .
    Your plugin is great and way better than yoast. And you guys provide a amazing support.
    Thanks guys

Viewing 15 replies - 1 through 15 (of 16 total)

You must be logged in to reply to this ticket.