• Resolved davidovic123

    (@davidovic123)


    Hi,

    I have the Kadence and Astra themes on my websites.

    1. How can I set up breadcrumbs?
    Do these themes generate them too?

    2. Do I need to add this code to header.php in the child theme:
    /* Use the following code in your theme template files to display breadcrumbs: */
    <?php if (function_exists('rank_math_the_breadcrumbs')) rank_math_the_breadcrumbs(); ?>


    Is it in header.php or functions.php?

    3. On the site where the Astra theme is activated, I noticed that the button to activate breadcrumbs is grayed out, with this message:
    This option cannot be changed since your theme has added the support for Rank Math Breadcrumbs using:
    add_theme_support( 'rank-math-breadcrumbs' );

    So, how to add correctly Breadcrumbs in Kadence and Astra themes?
    Tell me if I had to contact their support and what I should do?

    Thanks,

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Jaideep Asrani

    (@jaideeprm)

    Hello @davidovic123,

    Thank you for contacting Rank Math support.

    1. 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.
    2. Here is a guide to help you set up our plugin’s breadcrumbs on your site: https://rankmath.com/kb/breadcrumbs/
    3. 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.

    Thread Starter davidovic123

    (@davidovic123)

    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,

    Plugin Support Jaideep Asrani

    (@jaideeprm)

    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.

    Thread Starter davidovic123

    (@davidovic123)

    Thanks, @jaideeprm

    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.

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.