Unable to install Rank Math breadcrumbs under Astra theme

#666781
  • Resolved Fi
    Rank Math free

    Instructions I received said to open a new section on the site, add Shortcode widget, and copy and paste Rank Math breadcrumb code into widget. When published, the code is what shows on the site. No breadcrumbs. Likewise, I tried this using Astra’s breadcrumb code, after ensuring that it was allowing Rank Math to control the breadcrumbs. Same problem. Rank Math is installed and enabled, and the breadcrumbs function is permanently enabled by default. I went to the Astra theme customizer, which is where I enabled Rank Math, and did what I could there. Instructions I received from the Rank Math support bot told me to go to Appearance>Theme File Editor to edit the header.php file. I received a warning from WordPress that making alterations could break my site, so I knew to proceed with caution. I was told to look for either <header> or </header> in the header.php code. Did not find either of these, and was not willing to interpret anything else in the code as an ‘alternative’ to this. I need to know how to successfully add breadcrumbs to my site. Please help.

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

    I apologize for the issue you’re facing with adding breadcrumbs to your website using Rank Math and the Astra theme. I understand that you followed the instructions provided but were unable to see the breadcrumbs on your site.

    To troubleshoot this issue, I recommend the following steps:

    1. Make sure that Rank Math is installed and enabled on your website. You mentioned that it is already installed and enabled, but please double-check to ensure there are no conflicts or issues with the installation.

    2. Verify that the breadcrumbs function is permanently enabled in Rank Math. You mentioned that it is enabled by default, but please confirm this in the Rank Math settings.

    3. Instead of using the shortcode widget, let’s try adding the breadcrumbs code directly to your theme’s template file. Since you mentioned that you were hesitant to edit the header.php file, we can explore alternative options.

      • One option is to create a child theme for your Astra theme. This will allow you to make modifications without affecting the parent theme. You can follow the instructions provided by Rank Math in their knowledge base article on using a child theme.

      • Once you have set up a child theme, you can navigate to WordPress Dashboard → Appearance → Theme File Editor (for a Classic Theme) or WordPress Dashboard → Tools → Theme File Editor (for a Block Theme) and select your child theme template.

      • Look for the appropriate location in your theme’s template file to add the breadcrumbs code. In most themes, it would be either the single.php file or the header.php file. If you’re unsure, you can reach out to the Astra theme support or contact Rank Math’s support team directly from here.

      • Add the following code to the selected location in your theme’s template file:

      • Save the changes by clicking on the Update File button.

    4. After adding the breadcrumbs code to your theme’s template file, check if the breadcrumbs are now visible on your website. If not, please let us know, and we will further investigate the issue.

    If you encounter any difficulties or have additional questions, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further.

    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

    Fi
    Rank Math free

    I’ve opened header.php and added an extra line under ‘line 21’. I entered the code given in the Rank Math section of my WordPress account, as the code provided above is non-existent, and presents itself as an unselectable black bar.

    I cleared the dynamic caching in WordPress, as well as the caching on the browser. I revisited the refreshed website. Unfortunately I now have the code (not the breadcrumbs) showing above the header of the website. I want breadcrumbs below the main header and above the article title header. Code showing instead of breadcrumbs seems to be an ongoing issue.

    I’ve now reversed the alteration I made. I don’t know what I’m missing or whether there’s something wrong on Rank Math’s end.

    Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    In this case, we might need to take a closer look at the settings to apply the breadcrumb.

    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.

    Thank you.

    Fi
    Rank Math free

    Hi! I don’t know whether I have an FTP login. I should also point out that breadcrumbs are now showing up on Contact, About Us and Privacy Policy pages, but not on article pages.

    Thanks.

    Hello,

    You can ignore the FTP for now, just share your WordPress login and we’ll check this out for you.

    Best,

    Fi
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    Please also share the login URL of your site so we can help you further.

    Looking forward to helping you.

    Fi
    Rank Math free

    Hello,

    Looking through your website, we could not find the Rank Math breadcrumb code in your header.php file, can you please confirm where you added the code or how you are adding the breadcrumb code?

    Thank you for your patience and cooperation. Looking forward to hearing back from you.

    Fi
    Rank Math free

    Hi, I added the code in what seemed like the appropriate location within the file but then removed it, as it didn’t produce the result I wanted. The details are given in previous communications. I’m currently looking at the Plugin File Editor in WordPress and for some reason I can’t re-find the header.php file, so I’d possibly need directions to access that again. File editing is quite new to me, so I’ve been following directions of articles on how to deal with the breadcrumbs issue. What keeps happening is that I’m getting code instead of breadcrumbs, or I’m not getting breadcrumbs in the right place, or on all the pages. At the moment I’m getting breadcrumbs on the basic pages (Contact etc) but not on article pages. Thanks.

    Hello,

    We have added the breadcrumbs code to your single.php file to show it as well on your article pages.

    For further customizations of breadcrumbs, you may need to get in touch with your theme provider so they can help you with its appearance.

    Hope that helps.

    Fi
    Rank Math free

    Thank you!

    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.

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

You must be logged in to reply to this ticket.