Remove Searchaction from schema data

#20756
  • Resolved Bastian Fießinger
    Rank Math free

    How to remove the jsonLD related to the Search Query in WordPress?

    We removed the ability to search in WordPress. How to remove the related jsonLD now?
    “potentialAction”:{“@type”:”SearchAction”

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math today.

    You can add the following code snippet on your theme’s functions.php file to disable this schema on your website:

    
    //Disable the SearchAction json_ld data
    add_filter('rank_math/json_ld/disable_search', '__return_true');

    Looking forward to helping you. Thank you.

    ​​​​​​

Viewing 1 replies (of 1 total)

You must be logged in to reply to this ticket.