• Resolved anilky

    (@anilky)


    I haven’t selected any schema type for Pages, and yet it is showing up as ‘ContactPage’ schema. So is the case with few other pages.

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter anilky

    (@anilky)

    There is also one more unwanted schema type named ‘hentry’ on every post and page. It looks spammy. I’m checking on https://validator.schema.org/

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @anilky,

    Thank you for contacting support.

    The contact page Schema markup gets added to the page that is set as the contact page in the SEO module under WordPress Dashboard > Rank Math > Titles & Meta > Local SEO.

    That is the correct Schema markup for that type of page because you have indicated it’s a contact page.

    Regarding the hentry, that is not added by our plugin since it’s not inside our script tag so it must be coming from another plugin or your theme.

    Don’t hesitate to get in touch if you have any other questions.

    Thread Starter anilky

    (@anilky)

    I don’t see any option to remove ‘About’ or ‘Contact’ in Dashboard > Rank Math > Titles & Meta > Local SEO. When I click on it, it asks for two characters. Is there a way to turn off the entire ‘Local SEO’ thing because mine is not a local business. Second, I see a schema (CollectionPage) on home page as well. Where is that coming from?

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @anilky,

    You can disable the LocalSEO module from WP Dashboard > Rank Math > Dashboard.

    And since your homepage is the blog archive of your posts, our plugin adds the CollectionPage Schema.

    Hope that helps.

    Thread Starter anilky

    (@anilky)

    Thanks for your reply.

    I disabled ‘Local SEO’ module from the dashboard, but AboutPage and ContactPage schemas still show up. I don’t see any control to remove them.

    Also, is there a way to remove schema from archive pages. There is an option for this in category and tag archives.

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @anilky,

    To fully remove the Schema data automatically added to the website, you will need to edit the following filter and unset every option you don’t want:
    https://rankmath.com/kb/filters-hooks-api-developer/#extend-json-ld-data

    For example, to remove the ContactPage Schema, which is a type of webpage, you would add the following:
    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {unset($data['WebPage']);
    return $data;
    }, 99, 2);

    Don’t hesitate to get in touch if you have any other questions.

    Thread Starter anilky

    (@anilky)

    That’s strange. Even though I’m not using the schema as per your settings, I’ll have to jump through additional hoops to get rid of it. Your instructions should warn people of this consequence, like you do for htaccess.

    Will it not go away on its own? Can I delete the plugin and reinstall to get rid of it?

    I’m not a technical person, and if it’s not possible to get rid of it through above means, I would rather change the plugin.

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @anilky,

    Disabling the Schema module will completely remove the Schema markup from the website.

    If you are still seeing Schema after that please clear the cache on the website and server and try again. In case there’s data there after that, it’s likely coming from your theme or another plugin.

    Don’t hesitate to get in touch if you have any other questions.

    Thread Starter anilky

    (@anilky)

    I deactivated Rank Math and unwanted schemas named ContactPage (on Contact page) and AboutPage (on About page) went away. When I reactivated the plugin, they reappeared. Second, with the plugin activated, I ran ‘Ctrl + F’ on the code generated by https://validator.schema.org/, and there was class=rank-math-schema. Do you need more proof that this issue is being caused by Rank Math?

    To repeat, I don’t want any other schema except for blog post, but these two are also appearing. You have not been able to tell why these two are appearing and how I can turn them off.

    Thread Starter anilky

    (@anilky)

    Cache has been cleared multiple times, but to no effect.

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @anilky,

    The only way to remove the automatically generated Schema markup from our plugin and still keep access to adding other types on the pages is with the filter we mentioned above.

    You can use one of the methods mentioned here: https://rankmath.com/kb/filters-hooks-api-developer/

    Don’t hesitate to get in touch if you have any other questions.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Unwanted schema on pages’ is closed to new replies.