Hello,
Thanks for getting in touch with us.
The preview of your review is added in accordance with the Google guidelines which suggest that a webmaster should show the schema to the users as well as to the bots.
If you show it to just the bots, you run the risk of getting removed from the rich snippets program. That is the reason it is being added to the frontend.
Although we do not recommend removing it from the frontend – Rank Math allows you to take full control of your SEO. You can select the review location to custom(use shortcode) to remove the schema from the frontend.
Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.
Thanks for the quick reply!
It is reasonable to be so (showing the Schema / info to both users and bots). In this case, information for the recipe is available for the visitors (existing post), and adding schema info duplicates this information. I think it is not good for both visitors and bots (but it is my opinion only).
I tested what you offer me – using shortcode and do not insert it in the user area. This way RankMath generates and adds JESON-LD to the header, and there is no duplication in the user content. Testing took evaluates “Page is eligible for rich results”, but who knows?
There are 3 possibilities in the current (not English content & existing content) situation:
1. To use the RankMath in a regular way – it generates JSON-LD data but duplicates the same content with English labels;
2 To set up setting shortcode but without using it in the frontend (as you advise) – but with the note from you – run the risk of getting removed from the rich snippets program
3 Regular way but entering data in RankMath Schema form in English – it will generate both – JESON-LD + duplicated data in the frontend but in English (all not only the labels) – some kind of second language variant of text – probably it’ll be good for bots and English speaking visitors but not for Local language speakers.
What way is more reasonable according to your experience? Probably it needs testing or even asking google?
It’s become TOO LONG sorry, but I really hope it can be useful for both part of users of your application and you as the developer!
So, three more questions:
For using RankMath SCHEMA sidebar for new content. It is possible to add new content only from the sidebar and it is rendered in the user area. What are the ways to format this content (this content is not presented in the editor area)?
Is there a way the Schema item labels to be translated into another language?
For using RankMath with existing content – some form fields in the RankMath SCEMA sidebar can use existing variables to be populated automatically. Is it possible for others to use variables based on the HTML id-s or classes of the existing content?
Thank you in advance!
Hello,
Thank you for contacting Rank Math today.
You make a good point, since the post data is the same as the generated schema data, you can ignore adding the data to the frontend since Google is not also very strict on this.
I can suggest that you use step 2 to avoid affecting the user experience of site visitors.
For using RankMath SCHEMA sidebar for new content. It is possible to add new content only from the sidebar and it is rendered in the user area. What are the ways to format this content (this content is not presented in the editor area)?
I am afraid that this question is not very clear.
To be able to modify or translate the review text, you will need to hook into the following filter on your theme’s functions.php and pass the custom text to $text variable:
/**
* Filter to change review display location
*
* @param string $text Default Editor's choice.
*/
add_filter( 'rank_math/review/text', function( $text ) {
return $text;
});
For using RankMath with existing content – some form fields in the RankMath SCEMA sidebar can use existing variables to be populated automatically. Is it possible for others to use variables based on the HTML id-s or classes of the existing content?
Yes you can use any Rank Math replacement variable on the schema data to add custom content.
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.