1. Home
  2. Knowledge Base
  3. How to Add Sitelinks Searchbox Schema to All Pages

How to Add Sitelinks Searchbox Schema to All Pages

Sitelinks are known to increase the visibility of your website’s search result, and guess what — your website even stands a chance to feature a search box inside the SERP.

Sitelinks Searchbox

However, the decision to display sitelinks and search box are solely decided by Google, but the best, we can ensure for our website to stand a chance to feature sitelinks is by adding the Searchbox Schema Markup as per the guidelines and maintaining a good structure throughout our website.

Google’s guidelines recommend websites to add the WebSite structured data element only to their website’s homepage. Based on the recommendation Rank Math automatically adds the Sitelinks and Searchbox Schema only to the homepage of your website.

However, if you wish to implement the Sitelinks on all the pages, you can use our filter to add the Schema Markup to all the pages.

To add Sitelinks Searchbox Schema to all your pages, you can make use of the below filter.

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

You can check for “SearchAction” in the page source or run a Rich Results Test to check if the Schema Markup has been implemented correctly on all your pages.

Understanding the SearchAction

Google recommends only one SearchAction for a website and an optional another only if it supports an app search. Hence, the SearchAction should be pointed to your homepage even if the Schema appears on all your web pages.

And, that’s it! If you still have any questions on using Sitelinks Searchbox Schema, feel free to reach our support team — we’re always here to help.

Still not using Rank Math?

Setup takes less than 5 minutes including the import from your old SEO Plugin!

Know more about the PRO Version

Was this article helpful?

Still need help?


Submit Your Question

Please give us the details, our support team will get back to you.

Open Ticket