Rank Math Injecting Local SEO

#1025988
  • Resolved Valerie Boss
    Rank Math free

    It seems that the Local Business schema is being injected in my entire site by Rank Math plugin. Is it possible to turn this off for my products pages? Or any other pages that it may need to be turned off for (although I am not sure that would be necessary, I’m asking for future reference just in case.) I cannot find the setting to do this, I have checked google search, help and support documentation, and asked AI, and I still can’t find the settings for this. Please help.

    Thank you!

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.

    If you want to remove the LocalBusiness Organization schema from your product pages, you can use the following filter on your website:

    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
        if (isset( $data['publisher'] ) && is_product() ) {
            unset( $data['publisher'] );
        }
        return $data;	
    }, 99, 2);
    

    Here’s how you can add filter/hook to your WordPress site: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Let us know how it goes. Looking forward to helping 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.

Viewing 1 replies (of 1 total)

The ticket ‘Rank Math Injecting Local SEO’ is closed to new replies.