How to add Breadcrumbs

#580898
  • Resolved Anonymous
    Rank Math free

    Hello,

    I’m trying to set RankMath up for the first time, but I haven’t had much success with adding the code in the right place that’s needed to enable Breadcrumbs.

    I am not the most tech-savvy person, but there are three theme files under the Child theme and none seem to be having the desired effect – any advice would be appreciated!

    Here are some screenshots: https://imgur.com/a/vm2m2ti

Viewing 1 replies (of 1 total)
  • Hi there,

    Thank you for contacting Rank Math Support. We are sorry to hear that you are having trouble with adding the code for breadcrumbs.

    From the screenshots you shared, we noticed that you’re trying to insert the code in your function.php file. That’s not the right place to put it. You should add the code in the template file where you want your breadcrumbs to show up, not in the functions.php file.

    There are different ways you can add the code for breadcrumbs, depending on what you prefer and how comfortable you are with coding.

    • You can use a PHP function in your template file
    • The Rank Math [rank_math_breadcrumb] shortcode
    • or an Elementor widget, if you’re using Elementor

    If you want to use the PHP function, you have to find the right template file to add it. This may vary depending on the theme you’re using. In most themes, it would be either the single.php file or the header.php file. But if you’re not sure, you can ask your theme developer for help.

    You can learn more about how to add breadcrumbs with Rank Math here: https://rankmath.com/kb/breadcrumbs/

    We hope this helps you solve the problem. If you need any more help, please don’t hesitate to contact us again. We’re always happy to assist you.

    Best regards

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

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