Adding Breadcrumbs to Divi

#664824
  • Resolved Rachael
    Rank Math free

    Hi, I’ve followed the directions to add breadcrumbs to my divi lifestyle 25 themed blog and I am still struggling. I’ve tried adding it using the rank math directions to the theme builder as well as adding it to a header code plug-in. I am adding in the code:

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

    I keep getting a double error that says special characters must be escaped : [ < ] and special characters must be escaped : [ > ]
    Can someone assist me in exactly what I need to add to the header plug-in to make it work? Thanks so much a have a great day!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello, I apologize for the issue you’re facing with adding breadcrumbs to your Divi Lifestyle 25 themed blog.

    Based on the information provided, it seems that you are encountering an error related to special characters in the code. To resolve this issue, you need to escape the special characters in the code snippet you are adding to the header plugin.

    Instead of using the actual special characters < and >, you should use their HTML entities &lt; and &gt;. Here’s the modified code snippet that you can add to the header plugin:

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

    By using the HTML entities for the special characters, you will avoid the error message regarding escaping special characters.

    If you continue to experience difficulties or have any further questions, please reply to this ticket, and a member of our support team will be glad to assist you further.

    Thank you for your understanding, and we appreciate your patience. Have a great day!

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

    Rachael
    Rank Math free

    Hi, Thanks for the tips. Unfortunately, it is still not working. When I add in the code added above and hit save changes it defaults back to the original code with the error notices and doesn’t work right. Any advice on what else I may need to do? Thanks so much!

    Hello,

    Could you please share the header plugin URL you are using so we can check?

    Alternatively, we can take a closer look at the settings and apply the breadcrumbs code on your site.

    To do that, please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.

    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping 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.

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

The ticket ‘Adding Breadcrumbs to Divi’ is closed to new replies.