Hiding Rich Snippets

#74781
  • Resolved Zaphire
    Rank Math free

    What is the difference between just using the custom short code option (in the backend without implementing it into the content page) and using the following code:

    /**
    * Filter: Allow disabling the review display.
    *
    * @param bool $return true to disable.
    */
    add_filter( ‘rank_math/snippet/review/hide_data’, ‘__return_true’ );

    My objective is to hide the Schema for recipes

    • This topic was modified 3 years, 8 months ago by Zaphire.
Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math today.

    On some sites the recipe front end display is added by adding the shortcode while in others creating the schema type such as the recipe automatically adds it in the front end of your page. In such a case you can use the filter to remove it and show your own custom recipe display while Rank math adds the schema mark up for in the back end.

    Hope that helps. If you have any further question(s), please let us know. Thank you.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this ticket.