Breadcrumbs in code

#664134
  • Resolved Rachael
    Rank Math free

    Hi, I am trying to figure out how to add breadcrumbs to my divi lifestyle themed blog. I have added the code into a header plug-in but when I add it in I receive an error that says special characters must be escaped. Here is the exact code I am trying to add in:

    <?php if (function_exists(‘rank_math_the_breadcrumbs’)) rank_math_the_breadcrumbs(); ?>

    If you could let me know what I am doing wrong I would really appreciate it. I also tried to add the code into the theme editor section instead but am unable to find where I would add it as I am not great with the technology aspects of my blog. Any assistance would be appreciated. Thanks so much and have a great night!

    Rachael

Viewing 1 replies (of 1 total)
  • Hello Rachael, I apologize for the issue you’re facing with adding breadcrumbs to your Divi Lifestyle themed blog. Based on the information you provided, it seems that you’re encountering an error related to special characters not being escaped in the code.

    To resolve this issue, you can try using the following code instead:

    &lt;?php if (function_exists('rank_math_the_breadcrumbs')) echo rank_math_the_breadcrumbs(); ?&gt;

    By adding the echo statement before rank_math_the_breadcrumbs(), you should be able to escape the special characters properly.

    If you’re still experiencing difficulties, I recommend reaching out to our support forum at Rank Math Support. Our support experts are available 24/7 and will be happy to assist you further with adding breadcrumbs to your Divi Lifestyle themed blog.

    Please let me know if there’s anything else I can help you with. Have a great day!

    Sources:
    How to Enable Breadcrumbs on Your Website With Rank Math SEO » Rank Math
    How to Fix “Invalid object type for field ‘item'” » Rank Math

    This is an automated reply from Rank Math Support Bot. If you need further assistance, please reply to this topic and a human support agent will reply to you shortly.

    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 ‘Breadcrumbs in code’ is closed to new replies.