Viewing 1 replies (of 1 total)
  • Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @sanil7,

    Thank you for reaching out.

    You can remove the LocalBusiness schema from your pages and retain it only on Homepage. Please refer to this filter code:
    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) { if ( is_front_page() || ! isset( $data['publisher'] ) ) { return $data; } unset( $data['publisher'] ); unset( $data['place'] ); return $data; }, 99, 2);

    You may refer to this guide on how to add filters to your website: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope that helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Local Businesses Schema for Products’ is closed to new replies.