How to make Breadcrumbs working

#182626
  • Resolved Clerian Inc.
    Rank Math free

    Dear RankMath support team,
    I just enabled RankMath breadcrumb and am trying to figure out to put the code (<?php if (function_exists(‘rank_math_the_breadcrumbs’)) rank_math_the_breadcrumbs(); ?>) in function.php of Virtue Theme by Kadence WP. However, the theme won’t allow adding the code. And there is no child theme. Therefore, I tried to put it using Header & Footer Code. First of all, is this the right way to put the code in? If so, when I tried, there was a syntax error.
    Thank you and kindly advice.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Anas
    Rank Math business

    Hello,

    Thank you for contacting Rank Math, and sorry for any inconvenience caused.

    You need to add the PHP code in template files, ideally page.php and then use the breadcrumbs shortcode on the pages.

    If you want to display the breadcrumbs on every page, add the code at the bottom of the header.php file.

    I hope this helps. Looking forward to helping you.

    Clerian Inc.
    Rank Math free

    Dear Anas,
    Thanks for your reply with the explanation. I’ve added the code to the page.php then add the same code directly to a page that I am testing for RankMath Breadcrumb, using a PlugIn “Head & Footer Code”. The code appears when I checked with the Google Code View. However, the Google Rich Results doesn’t recognize there is Breadcrumb. The rendered code at the Rich Results indicates the below (it looks like commented out).

    <!–?php if (function_exists(‘rank_math_the_breadcrumbs’)) rank_math_the_breadcrumbs(); ?–>

    Thanks.

    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.
    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.

    Clerian Inc.
    Rank Math free

    Dear Jeremy,
    Thank you for your reply. I’ve just installed the temporary login link using the PlugIn. Here is the link:

    Please note that I’ve never used this plugin before, and if the system asks for login info, please use login name as John Kim, and email: c*********@g********

    Thank you!

    Anas
    Rank Math business

    Hello,

    I have moved your login link to the sensitive data section.

    I logged in to your site and added the breadcrumbs PHP code to the bottom of the page.php file.

    Then added the breadcrumbs shortcode [rank_math_breadcrumb] to your latest post. The breadcrumbs are now working, you need to add this shortcode on pages that you want you to use the breadcrumbs.
    image

    I hope this helps. Looking forward to helping you.

    Clerian Inc.
    Rank Math free

    Dear Anas,
    I thank you so much for your assistance. I will go with your pro services before my scheduled campaign sometime this year.
    Thank you again and all the best!
    John.

    Anas
    Rank Math business

    Hello,

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

    Clerian Inc.
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank 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 8 replies - 1 through 8 (of 8 total)

The ticket ‘How to make Breadcrumbs working’ is closed to new replies.