Hello,
Thank you for reaching out to us about enabling breadcrumbs on your website. To add Rank Math’s breadcrumbs code to your theme’s header.php file, you should paste the following code snippet in an appropriate location within the file:
You can place this code snippet in your header.php file before the closing “ tag. It’s essential to ensure that the code is added in a suitable location to display the breadcrumbs correctly on your website.
If you encounter any difficulties or need further assistance, please feel free to reach out to us. We are here to help you 24/7.
Best Regards,
Rank Math Support Team
Sources:
How to Make Your Theme Rank Math Compatible » Rank Math
How to Enable Breadcrumbs on Your Website With Rank Math SEO » Rank Math
How to Customize Breadcrumbs in Rank Math » Rank Math
Rank Math General Settings
Thank you for your prompt reply.
I still have 2 question.
1. I couldn’t see the code you mentioned in your reply. Could you please send it again?
2. How I can recognize the closing tag?
Thank you for your kind support!
Best Regards,
Asuka
Hello,
Thank you so much for getting in touch.
To show breadcrumbs on your website, you have to add the code to where you want the breadcrumbs to appear, on the theme’s page and post templates I have shared a link to a KB showing how to do this using the provided code snippet.
KB: https://rankmath.com/kb/breadcrumbs/#theme-template-files
You also have the option to add the breadcrumbs using the shortcode.
KB: https://rankmath.com/kb/breadcrumbs/#shortcode
Please note that the placement of the breadcrumbs code depends on how your theme is structured. I would suggest contacting your theme author to ensure the code is placed in the right area of your website.
Please do not hesitate to let us know if this doesn’t help or you have any follow-up queries.
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.