Disable SearchAction Schema JSON.LD

#282527
  • Resolved Erdiawan Anna
    Rank Math free

    Hi Team

    Thank you for your support before, it helped

    Now I got a new problem, Google trying to crawl /?s={search_term}page/* that is doesn’t exist (500 error code). My assumption Google get the URL from the JSON-LD schema. Can I disable the ActionSearch schema (Searchbox)?

    Thank you

Viewing 1 replies (of 1 total)
  • Hello,

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

    The SearchAction is required if you want your site to be eligible for Google’s sitelinks search box.

    If you wish to disable that, please refer to this filter and insert it in your theme’s functions.php file:

    add_filter( 'rank_math/json_ld/disable_search', '__return_true' );

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    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 ‘Disable SearchAction Schema JSON.LD’ is closed to new replies.