Hello, we apologize for the issue you are facing with the Rank Math Table of Contents (TOC) creating unnecessary schema on your page.
To resolve this, you can delete the corrupted schema from your WordPress dashboard. Here’s how:
- Go to the Schema section in your Rank Math settings.
- Locate the corrupted schema that is being generated by the TOC.
- Click on Delete to remove it.
Once you have deleted the unnecessary schema, you can return to your post and add a new schema if needed.
For more detailed instructions, you can refer to our guide on resolving Rank Math Schema Markup Related Issues.
Thank you for raising this concern, and we hope this helps you resolve the issue!
Sources:
Resolving Rank Math Schema Markup Related Issues
Hello,
Thank you for contacting us. We apologize for any inconvenience this issue may have caused.
In Rank Math, we add the SiteNavigationElement in your schema automatically when you use the TOC block:
https://rankmath.com/kb/rich-snippets/#sitenavigationelement
The SiteNavigationElement schema is used to mark up navigational components on a page, such as a table of contents. This schema helps search engines understand the structure of your page.
Here is a guide that explains the SiteNavigationElement Schema and its benefits in detail. https://getcleaningclicks.com/a-quick-guide-to-site-navigation-schema-markup/
Hope that helps, and please do not hesitate to let us know if you need our assistance with anything else.
Where is Schema section in your Rank Math settings
Hi, Can I hide it? The other TOC plugins do not create schema like this!
Hello,
You can remove this Schema by adding the following filter on your website:
add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
if( isset( $data['toc'] ) ) {
unset( $data['toc'] );
}
return $data;
}, 99, 2);
You can use one of the methods mentioned here to add this code snippet: https://rankmath.com/kb/wordpress-hooks-actions-filters/
Don’t hesitate to get in touch if you have any other questions.
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.