Remove the schema data of “Service” generated by Rank Math SEO

#778213
  • Tao Sheng
    Rank Math free

    Hi, I want to replace my schema data with more accurate data, but schema.org can only detect the schema data generated by RankMath. I have tried several methods to remove the data, including deactivating local SEO, resetting settings, and deactivating the plugin. but the code is still there, Rank Math SEO generates the service schema, and it overrides my schema code tagged as organization which is manually added in my theme file header.php. How can I remove the schema data, please?

    I have installed the code snippet and added the line, but it is still there.
    add_filter(‘rank_math/snippet/rich_snippet_service_entity’, ‘__return_false’);

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    I apologize for the inconvenience you are facing with removing the schema data generated by Rank Math SEO. It seems like you are trying to remove the Service schema data but are encountering difficulties even after adding the code snippet.

    To remove the Service schema data generated by Rank Math SEO, you can use the following code snippet:

    add_filter('rank_math/snippet/rich_snippet_service_entity', '__return_empty_array');

    This code snippet will help in removing the Service schema data. Make sure to add this code snippet to your website’s functions.php file or the rank-math.php file.

    If you have already added this code snippet and the issue persists, please ensure that the code is correctly added and saved. Additionally, clear any caching plugins or server-side caching that might be preventing the changes from reflecting immediately.

    If you continue to face issues after implementing the code snippet, please feel free to reply to this ticket, and a human agent from our support team will assist you further.

    Thank you for bringing this to our attention, and we appreciate your patience as we work to resolve this issue for you.

    Best regards.

    Sources:
    Remove Organization Schema from Your Website » Rank Math
    Remove All Schema from Product Category Pages » Rank Math
    How to Remove Keywords Data from Article Schema » Rank Math
    Removing Schema From Your Posts & Pages » Rank Math
    Remove All Schema from Product Category Pages » Rank Math

    This is an automated reply from Rank Math Support Bot. Your ticket has been assigned to a human agent and we will get back to you shortly.

    Tao Sheng
    Rank Math free

    I have added this code and tried to test from the new browser but this issue is still there

    https://imgur.com/cCrVugx

    Hello,

    Could you please confirm if you’re referring to the schema shown on the header of your homepage?

    If so, please check your theme’s header.php file or single.php if the schema is somehow added to those files as it shown inadvertently.

    Alternatively, we can take a closer look at your site. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.

    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Tao Sheng
    Rank Math free

    I temporarily removed RankMath, as it shows: Warning: Undefined array key “@type” in /home/u935135341/domains/easymarketing.uk/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-frontend.php on line 107

    Warning: Undefined array key “@type” in /home/u935135341/domains/easymarketing.uk/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-frontend.php on line 180

    Still, the problem exists on my website.

    Hello,

    Can you please share your WordPress and FTP logins in the sensitive data section so that we can check the issue further for you?

    Looking forward to helping you.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this ticket.