Where to install Breadcrumbs code in Divi Extra theme

#499252
  • Resolved roger-0651
    Rank Math free

    Hi there, I installed RankMath and I am currently trying to insert the Breadcrumbs code:
    /**
    * Use the following code in your theme template files to display breadcrumbs:
    */
    <?php if (function_exists(‘rank_math_the_breadcrumbs’)) rank_math_the_breadcrumbs(); ?

    however, I’m not sure where to insert the code in the CSS. Is it in the header or singles part of the CSS? I tried viewing the RankMath guide but I couldn’t figure it out. I’m using the Divi Extra Theme. Would appreciate any help, thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hello,

    Thank you for contacting Rank Math support, and sorry for any inconvenience that might have been caused due to that.

    Our breadcrumbs code is not to be inserted in the CSS as this is a PHP code.

    Please refer to this guide here: https://rankmath.com/kb/breadcrumbs/#theme-template-files

    If you still have difficulties adding the breadcrumbs, just let us know and we will be more than happy to assist you further.

    Looking forward to helping you on this one.

    Hi Jeremy, so I read the guide and tried inserting the Breadcrumbs code into both my single.php and header.php file. Here’s what happens:

    Header.php – it’s unsuccessful when I try to insert the code.

    Single.php – inserting the code works, but it creates a critical error on my website. So I had to take it out.

    What should I try to do next?

    Hello,

    We might need to take a closer look at the settings. 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/

    Looking forward to helping you.

    Thank you.

    Hi there, I have provided instructions in my original post. Thank you.

    Hello,

    We went ahead and installed your breadcrumbs in the file single-post.php for the posts. Please clear your website and browser cache and check one of your posts.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Hi Jeremy, I see that it’s working now. Thank you guys so much for your help, I really appreciate it!

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

    Ok sounds good, I’ll leave a review!

    Nigel
    Rank Math business

    Hello,

    We appreciate your gesture to give a review.

    I am going to mark this ticket as resolved and close it to replies. If you need help again, do not hesitate to open a new ticket.

    Thank you.

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

The ticket ‘Where to install Breadcrumbs code in Divi Extra theme’ is closed to new replies.