Hello,
Thank you for contacting Rank Math, and sorry for any inconvenience caused.
Please go to Rank Math > General settings > Breadcrumbs and make sure you have enabled the Breadcrumbs option.
Then, please add the breadcrumbs PHP code at the bottom of the header.php file (this will add the breadcrumbs below the header on every page).
Below-mentioned is the PHP code that you need to add to the bottom of the header.php file:
<?php if (function_exists('rank_math_the_breadcrumbs')) rank_math_the_breadcrumbs(); ?>
Next, if you want to add breadcrumbs on any specific pages, you can use the shortcode in the page editor: [rank_math_breadcrumb]
Here is a guide for your reference: https://rankmath.com/kb/breadcrumbs/
Hope this helps.
Looking forward to helping you.
Thank you.
I try this guide and i dont know where to locate header.php file in divi child theme. When i try add this code in divi i have problems with website. I alredy write email about this.
Hello,
I have added the code to your theme’s header.php file and the breadcrumbs are now visible on your site.
Please check and let us know if you need any other assistance.
Thanks.
Thx for help. I have question why on some pages is see breadscrumbs and on other not. For example blog page.
I want add custom CSS style to breadscumbs. I try add style id to code. Is this format ok?
if (function_exists(‘rank_math_the_breadcrumbs’)) rank_math_the_breadcrumbs( ‘<p id=”breadcrumbs”>’,'</p>’ );
Hello,
No, that is not the correct way.
You can apply custom CSS to the breadcrumbs, by going to Appearance > Additional CSS, and use this Rank Math breadcrumbs selector:
.rank-math-breadcrumb a {
}
.rank-math-breadcrumb {
}
Hope that helps.
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.