There is something wrong with the schema

#1050643
  • Resolved Muhammad Abdullah
    Rank Math free

    Hi Rank Math Support,

    I’m managing the site https://americanremodeling.net/ and I’ve encountered a persistent schema issue.

    We’ve manually implemented custom JSON-LD schema for our homepage using Rank Math’s “Custom Schema” editor. It includes:

    Organization

    RoofingContractor

    Service

    WebSite

    All markup passes validation via Schema.org and Google’s Rich Results Test.

    However, Google is still detecting a second set of schema, including:

    A duplicate Organization (named American Remodeling instead of American Remodeling Enterprises Inc.)

    A hidden HomeAndConstructionBusiness type

    An unexpected Place object

    This duplicate schema does not appear in the Rank Math UI, nor does it show up in the schema editor or theme files. I’ve cleared all cache and checked via view-source: as well.

    Can you please confirm:

    Is Rank Math injecting this default schema behind the scenes?

    How can I permanently disable all auto-generated schema for this page?

    Is there a hook/filter I should apply site-wide?

    Thank you for your help—this is important to clean up for SEO and structured data accuracy.

    Schema validator is saying its all good. My page view source inspection and google validator is showing duplicates

    Best regards,
    Muhammad

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

    We apologize for the issue you are facing with the schema on your site. Thank you for providing detailed information about the problem.

    To address your concerns:

    1. Is Rank Math injecting this default schema behind the scenes?
      Yes, Rank Math automatically generates certain schema types based on the content and settings of your site. This can sometimes lead to duplicate schema if custom schema is also implemented.

    2. How can I permanently disable all auto-generated schema for this page?
      You can use a filter to disable the auto-generated schema for specific pages. Here’s a code snippet you can add to your theme’s rank-math.php file to remove all schema from your homepage:

      add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
         if ( is_front_page() ) {
             return [];
         }
         return $data;
      }, 99, 2);

      This will ensure that no schema is generated for the homepage, allowing only your custom schema to be used.

    3. Is there a hook/filter I should apply site-wide?
      If you want to disable schema site-wide, you can modify the filter to apply it globally instead of just for the homepage. However, be cautious with this approach as it will remove all schema across your entire site:

      add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
         return [];
      }, 99, 2);

      This will prevent Rank Math from generating any schema markup.

    Please ensure to back up your site before making any changes to the code. If you continue to experience issues or need further assistance, please reply to this ticket, and a human agent from our support team will take over and assist you further.

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

    Sources:
    Resolving Rank Math Schema Markup Related Issues
    Removing Schema From Your Posts & Pages » Rank Math

    If I add that hook filter to remove it from rankmath, it appears to be removing all schema’s including the one I have added through custom json ld on rankmath. I need a better solution

    This is really bad. I was looking for a reply from rankmath support . not from spammers

    Hello,

    We deeply apologize for the unexpected delay in response.

    We checked your homepage and noticed that only a single item is being detected for both the LocalBusiness and Organization schema.

    Also, we are not able to detect the RoofingContractor schema any longer on your homepage.

    Can you please confirm if you have already managed to fix the issue?

    However, it looks like you’re currently using the Rank Math PRO plugin on your websites, but the account you have used to open this ticket is the Rank Math free version.

    Please search and forward a receipt from FastSpring.com so we can locate your account and verify it.

    Looking forward to helping you.

    Thank you.

    The thing is when the issue appeared to me. I deleted my custom schema code and kept the one I have from RankMath. Is there any solution to it? Check the code I have uploaded in my first email.

    I may need to take the logins from AmericanRemodeling to get a fast support

    Hello,

    Yes, Rank Math does tend to generate a default organization schema and having a custom one will cause duplication. The default schema is coming from the Local SEO settings in the Titles & Meta settings in our plugin.

    If you wish to remove the organization schema in favor of the custom one, you may follow this guide: https://rankmath.com/kb/remove-organization-schema/ or use the Schema Template (which is a PRO feature) and use the insert display option:

    Rank Math support

    Hope that helps. Thank 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 6 replies - 1 through 6 (of 6 total)

The ticket ‘There is something wrong with the schema’ is closed to new replies.