Breadcrumb Schema Error in WooCommerce Product with Astra Theme

#1054191
  • Resolved PM
    Rank Math free

    Hello Rank Math Support Team,

    I am using the Astra theme together with your Rank Math SEO plugin and WooCommerce on my website https://www.profiokna.sk.

    I have enabled breadcrumbs in Rank Math, and they are visible on the product pages. However, when I test my WooCommerce product URLs in Google’s Rich Results Test or Schema Markup Validator, I see this error inside the Product schema:

    “breadcrumb”: {
    “@id”: “https://www.profiokna.sk/produkt/biele-plastove-posuvne-dvere-200×230-cm/#breadcrumb”
    }

    I want the breadcrumbs to be included correctly in the schema so that the product passes the test without issues. I’m not sure if the Astra breadcrumbs are causing a conflict or if the Rank Math breadcrumbs are not outputting the full JSON-LD.

    Can you please help me fix this issue or guide me on how to ensure breadcrumbs are correctly embedded in the Product schema?

    Thank you very much!

    Best regards,
    Patrik

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

    We apologize for the issue you are facing with the Breadcrumb Schema in your WooCommerce product pages. It seems like there might be a conflict between the Astra theme’s breadcrumbs and the ones generated by Rank Math.

    To resolve this issue, we recommend the following steps:

    1. Disable Astra’s Default Breadcrumbs: Since you are using Rank Math for breadcrumbs, it’s best to disable the default breadcrumbs provided by the Astra theme. You can do this by adding the following code to your theme’s functions.php file:

      /**
      * Function to disable Astra breadcrumbs
      */
      function remove_astra_breadcrumbs() {
         remove_action( 'astra_breadcrumb', 'astra_breadcrumb', 10 );
      }
      add_action( 'init', 'remove_astra_breadcrumbs' );
    2. Ensure Rank Math Breadcrumbs are Enabled: Make sure that you have enabled breadcrumbs in Rank Math. You can do this by navigating to Rank Math SEO → General Settings → Breadcrumbs in your WordPress dashboard and activating the Enable Breadcrumbs function.

    3. Add Breadcrumbs to Your Template: If you haven’t already, ensure that you are using the Rank Math shortcode [rank_math_breadcrumb] in your product template where you want the breadcrumbs to appear. This will ensure that the correct JSON-LD schema is outputted.

      Rank Math Breadcrumbs shortcode

    4. Test Again: After making these changes, test your product URLs again in Google’s Rich Results Test or Schema Markup Validator to see if the error persists.

    If you continue to experience issues, please reply to this ticket with any additional details or errors you encounter, and a human agent from our support team will assist you further.

    Thank you for raising this concern, and we hope this helps resolve your issue!

    Sources:
    How to Enable Breadcrumbs on Your Website With Rank Math SEO » Rank Math
    Configuring “Schema Markup” in Rank Math for Rich Snippets » Rank Math

    Hello,

    We’ve tested a product on your site, and the schema is validating fine:
    https://search.google.com/test/rich-results/result?id=3bzsv2am27UnuOuOLcqxOg

    In this case, please clear your website’s cache and revalidate the issue in your Google Search Console account and give Google some time to recrawl your site.

    validate

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

The ticket ‘Breadcrumb Schema Error in WooCommerce Product with Astra Theme’ is closed to new replies.