How to turn off Local SEO schema Injection on Homepage?

  • I was wondering to turn off the Local SEO for homepage, specifically LocalBusiness Schema that comes on homepage. Is it possible to just turn off the LocalSEO schema from homepage only and keep the rest of the schema for rest of the internal / other pages?

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math today.

    You can use the following filter on your theme’s functions.php file to customize the JSON+ld data on the pages:

     * Filter: Remove/modify schema data.
     * @param array $return Array of json-ld data.
    add_filter( 'rank_math/json_ld', function( $data, $json ) {
    	return $data;

    Please take a look at this page for more info on this:

    Looking forward to helping you. Thank you.



    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.

Viewing 1 replies (of 1 total)

The ticket ‘How to turn off Local SEO schema Injection on Homepage?’ is closed to new replies.