Hello,
Thank you for contacting Rank Math today.
Google recommends that you should show the rich snippets to both visitors and bot but can avoid assigning the shortcode on the page and Google will still reward you with rich snippets.
Looking forward to helping you. Thank you.
ββββββ
Hi
Thanks for the reply.
So just to confirm. If I set the Rank Math setting to “Shortcode” and then not put the Shortcode on the page (so it does not show anywhere), Google will still show the rich snippet on search results?
Thanks for your help.
Hi there,
Thanks for the follow up.
Yes Rank Math will still add the necessary markup for the rich snippet to the page.
It may take some time before they show up in the search results, please allow a few days for Google to pick up the information.
Google will not necessarily show the rating stars, though, they check a few things first and may choose not to show, for instance, they check the overall quality of the site, and if the review content is representative of the main content of the page or not.
Here is a quote from one of the Googleβs help article:
We perform algorithmic and manual quality checks to ensure that structured data meets relevancy standards. In cases where we see structured data that does not comply with these standards, we reserve the right to disable rich snippets for a site in order to maintain a high-quality search experience for our users. Read our webmaster guidelines for more details.
Link:
https://developers.google.com/search/docs/guides/intro-structured-data#structured-data-guidelines
Hope that helps. If you have any further question(s), please let us know. Thank you.
Is there anyway to auto set this schema to shortcode or to de-enqueue the on page display of it entirely?
I am not planning to use the review feature of the course schema, nor allow people to rate it. It will be tedious to have to edit this on every post.
Hello,
Thank you for contacting Rank Math today.
Yes it is possible to disable the display of the rich snippets on the frontend by adding the following snippet on your theme’s functions.php file:
/**
* Filter: Allow disabling the review display.
*
* @param bool $return true to disable.
*/
add_filter( 'rank_math/snippet/review/hide_data', '__return_true' );
Looking forward to helping you. 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.