Schema not working for home page

#53807
  • Resolved Gennadii
    Rank Math pro

    Google Structured Data is throwing errors
    – for products on the home page
    – for Product pages
    – breadcrumbs on Product pages

Viewing 9 replies - 1 through 9 (of 9 total)
  • Alberto
    Rank Math business

    Hello,

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

    For the Product errors you see, you can fix them following these steps:

    Rank Math takes the schema data from your product pages automatically and turns it into Schema-ready content. Likewise, the aggregateRating and review fields are taken from your actual product reviews that your buyers/customers leave on your products.

    If you don’t have any reviews yet, that is going to show up as a warning in the schema testing tool. That’s because Google will actually look for those fields.

    Please acquire some reviews and ratings to get rid of the aggregateRating and review warnings.

    You can fix the SKU and availability issue easily as well:

    To fix the brand warning, head over to WordPress Dashboard > Rank Math > General Settings > WooCommerce and choose from any of the available fields to use as your product’s brands.

    Brand Value

    If you want to use a custom value for your Brands, you can do that by using the following code in your theme’s functions.php file:

    // Add Brand for Products.
    add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
    $entity['brand'] = 'Rank Math;
    return $entity;
    });

    Replace the “Rank Math” text with your actual brand name then run your website through the Structured Data Testing tool once again.

    Also, it seems like you have another plugin (or the theme) adding the Schema and meta tags together with Rank Math (it seems it is called Blog2Social 630), so it could be causing you conflict (like those with the Products and also the Breadcrumbs one) so you should try to disable it and see if it fixes some of your issues.

    Looking forward to help you.

    Todd
    Rank Math free

    Hi Gennadii,

    I am extremely sorry for the issues you are facing.

    1. Product Schema needs to be used only on actual products. It will inadvertently throw errors if used on homepage, product archives, or shop pages. That’s why we recommend disabling the Product Schema on anything other than the actual products. You can do that from WordPress Dashboard > Rank Math > Titles & Meta > Homepage

    If you are using a static page, you can do that from the Schema tab:
    null

    Use the article Schema for the homepage instead of product Schema – unless of course you are seeing a single product on your homepage.

    2. Please check my colleague’s reply above on the Schema issues you are seeing on the product page.

    3. You are using 2 sets of Breadcrumbs code. One without issues, that is coming from Rank Math:
    null

    The other with issues is coming from your theme, we suppose. You will need to check this yourself or rule out that it is caused by Rank Math or not by disabling Rank Math temporarily and running the test again here. Do clear the cache before testing.
    https://search.google.com/structured-data/testing-tool/u/0/

    Hope that helps.

    Hi Todd,

    Thank you for this.

    I would believe you for products on the Home page if I did not try Article Schema on the Home Page. The result is the same.
    I also tried WPSSO plugin which is fixing all issues including the ones for the Home page. It also fixes all breadcrumb issues and issues with Product pages. The don’t provide Price field cause this is for Premium part of plugin 🙂
    I would suggest before recommending Article Schema instead of Product schema on the Home page you tried it yourself and see how it worked.

    Todd
    Rank Math free

    Hello,

    We did try on our test install and it works.

    We are glad you proactively tested another plugin. But, did you try disabling Rank Math and testing afterward as well?

    Here’s a screenshot of your SDTT AFTER Rank Math is disabled:
    null

    So, the issue is there regardless of whether Rank Math is enabled or not.

    Let us know.

    Hi,

    But that is exactly what I mean:
    ‘So, the issue is there regardless of whether Rank Math is enabled or not.’

    But if I enable WPSSO plugin the issue disappears.

    Here comes the question. What is the use of Rank Math then?

    I gave you guys full access to the account and you can’t fix the issue.

    Then shall I buy WPSSO plugin and say Rank Math could not fix above issues?

    Todd
    Rank Math free

    Hi,

    The Rank Math’s purpose is to make your content Schema friendly. We cannot fix issues introduced by your theme or another plugin.

    If some other product on your website is adding the Schema incorrectly, we cannot strip that. I see you have WPSSO Strip Schema Microdata installed on your website which seems to be created for the sole purpose of fixing issues created by other plugins or your theme. You can enable that if you like.

    Again, Rank Math doesn’t have a feature to disable Schema output by other plugins.

    Hope that helps.

    So, what is causing the issue on the Home page, as you think?
    This your advice does not help as you already know: “Use the article Schema”

    What shall I do to fix this on the Home page?

    Todd
    Rank Math free

    Hello,

    I can understand you are expecting us to have answers to everything. We might but only with regards to Rank Math and the features we offer.

    Since the issue is not coming from Rank Math, you will need to find where it is coming from.

    The first step is to switch to another theme temporarily.

    If that fixes it, please talk to your theme provider about it. If not, check the next step.

    The next step is to check if any other plugin on your website is causing it.

    Disable all your plugins temporarily and enable them one by one until you find the plugin that is causing it.

    Once you find the plugin, ask the plugin developer how to fix that issue.

    If you find Rank Math is causing any issue, we would be more than happy to help.

    If my reply doesn’t help, please tell us what solution you are expecting so we can tell you if that is possible or not.

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

The ticket ‘Schema not working for home page’ is closed to new replies.