structured data remove SearchAction reference sitewide

#349773
  • Resolved Julian Wright
    Rank Math free

    Hi there, we need to remove the SearchAction reference in the basic structured dataset (potentialAction). Is this possible site wide?

    Thank you so much!

    best

    Example:

    potentialAction”:{“@type”:”SearchAction”,”target”:”https://www.************.de/?s={search_term_string}}

Viewing 3 replies - 1 through 3 (of 3 total)
  • Anas
    Rank Math business

    Hello,

    Thank you for contacting Rank Math, and sorry for any inconvenience caused.

    Sitelinks Search Box Schema Schema is added by default to only the Homepage according to Google guidelines. If you want to remove it, add the below filter to the theme’s functions.php file:

    /**
     * Filter to enable/disable SearchAction JSON-LD data
     */
    add_filter( 'rank_math/json_ld/disable_search', '__return_true' );

    Here is a guide you can follow to add the filter:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/#functions-php-file

    I hope this helps. Looking forward to helping you.

    this has to be the fittest and fastest support in the galaxy. thank you so much!

    Anas
    Rank Math business

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

The ticket ‘structured data remove SearchAction reference sitewide’ is closed to new replies.