Hello,
Thank you for contacting Rank Math and bringing your concern to our attention.
The Organization Schema data is extracted from the values you have set in Rank Math > Titles & Meta > Local SEO which automatically applies to all of your pages, including your contact/about page.
Here’s a link for your reference:
https://rankmath.com/kb/local-seo/
I hope that helps.
Thank you, and please don’t hesitate to contact us anytime if you need further assistance with anything else.
Thanks.
What if I dont want to have organisational schema on every page and only want it on my homepage and about page can I alter it to do so?
Hello,
You would need to hire a code to customize this filter code for you. You can add a conditional statement to remove that specific schema except for your homepage and about page.
add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
unset( $data['publisher'] );
return $data;
}, 99, 2);
Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.
Im confused not sure what you mean?
Are you saying that I need to insert that specific code in my theme file?
Hello,
The filter can be inserted through your theme’s functions.php file. However, we recommend following our guide so it won’t be removed once your theme updates.
Please also note that the code should be customized to have a conditional statement that will check as per your requirements.
I hope that helps.
Thank you, and please don’t hesitate to contact us anytime if you need further assistance with anything else.