Hello @davidovic123,
Thank you for contacting Rank Math support.
- The themes do have their own breadcrumbs. If you want to use our plugin’s breadcrumbs, you should disable the Breadcrumbs of the Kadence theme in WP Dashboard > Appearance > Customizer > General.
- Here is a guide to help you set up our plugin’s breadcrumbs on your site: https://rankmath.com/kb/breadcrumbs/
- Astra has added support for our plugin’s breadcrumbs and that’s why you can’t disable the Breadcrumbs option in our plugin’s settings. You don’t have to add the code on the sites where you are using Astra. You can follow this guide to add our plugin’s breadcrumbs with Astra: https://wpastra.com/docs/add-breadcrumbs-with-astra/#_3–with-rank-math-plugin
Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.
Thanks @jaideeprm for your reply,
The guide isn’t clear for me.
To enable Rank Math Breadcrumbs, there are two codes:
code 1 –> to Add Breadcrumbs to Theme Template Files:
<?php if (function_exists('rank_math_the_breadcrumbs')) rank_math_the_breadcrumbs(); ?>
code 2 –> to Register theme support for Rank Math breadcrumbs:
add_theme_support( 'rank-math-breadcrumbs' );
—
Considering the Astra and Kadence themes cases.
Astra:
note: In Customizer I enabled Rank Math in Breadcrumb Source.
Do I have to add code 1?
I presume the code 2 is already included in the theme, since the dashboard shows this info.
Kadence:
note: In Customizer I enabled Rank Math in Breadcrumb Engine.
Do I have to add code 1?
The Rank Math dashboard does not show code 2 as inserted. So, do I have to insert code 2?
—
I have child theme for these parent themes.
If I had to insert those codes, where to insert them?
Where to add code 1 & code 2. Is it in functions.php, header.php, another file?
Thank you,
Hello @davidovic123,
Since both themes have added the support for our Breadcrumbs, you don’t have to add any code to your site. You can select Rank Math in the breadcrumbs settings of the theme’s customizer to apply them to your site.
Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.
Plugin Support
Jeremy
(@jeremrm)
Hello @davidovic123,
You’re very much welcome!
Don’t hesitate to get in touch with us if you have any other questions.