Hello,
I understand your concern about preventing the automatic addition of schema structures like Website, ImageObject, and WebPage when activating the Rank Math plugin. To prevent this automatic addition, you can follow these steps:
-
Enable Rank Math’s Advanced Mode:
- After installing the Rank Math plugin, ensure that the Advanced Mode is selected in the Rank Math dashboard. You can do this by following the steps shown in the image below:
-
Disable Schema Markup Module:
- Navigate to the Rank Math SEO → Dashboard section and disable the Schema module. This will prevent the automatic addition of schema structures like Website, ImageObject, and WebPage.
By following these steps, you can prevent the automatic addition of schema structures when activating the Rank Math plugin. If you have any further questions or need assistance, feel free to ask. Thank you for reaching out!
Sources:
Using Review Schema Type to Earn Star Ratings » Rank Math
Removing Schema From Your Posts & Pages » Rank Math
Bulk Editing Options in the Rank Math SEO Plugin
Configuring “Schema Markup” in Rank Math » Rank Math
Carousel Search Results » Rank Math
Yes, I made this setting. But these schemas still seem active.
Hello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
We tried to check your website by using Google’s Rich Result test tool but we can see you’ve set a disallow rule for the search engine bots in your robots.txt file.
However, please note that when you disable the Rank Math Schema module, it doesn’t generate any kind of schema for your website including Webpage, Website, and ImageObject.
In case, you want to use the other Rank Math schema markups but only want to remove the Webpage, Website, and ImageObject, then you can use the following filter on your website:
add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
unset($data['WebPage']);
unset($data['WebSite']);
unset($data['ImageObject']);
return $data;
}, 99, 2);
Here’s how you can add filter/hook to your WordPress site: https://rankmath.com/kb/wordpress-hooks-actions-filters/
Hope that helps and please don’t hesitate to let us know if you have any other questions.
Thank you.
https://imgur.com/xIkTSh0
Hello, WebPage and WebSite have been removed, but ImageObject still seems active.
But when I de-activate rank math, ImageObject disappears.
Hello,
The image inside the Schema needs to be targeted with the following:
$data['primaryImage'];
In this case, please update the filter with this one:
add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
unset($data['WebPage']);
unset($data['WebSite']);
unset($data['ImageObject']);
unset($data['primaryImage']);
return $data;
}, 99, 2);
Let us know how this goes.
Hello,
Glad that everything has been sorted out.
Do you still need our assistance with anything else or we can go ahead to close the ticket?
We really look 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.