-
Hi, I am having trouble enabling the Sitelinks Searchbox schema for all pages. I have already added the following line of code (functions.php) as mentioned in the knowledge base (https://rankmath.com/kb/sitelinks-searchbox-schema/).
/**
* Filter to enable/disable SearchAction JSON-LD data
*/
add_filter( 'rank_math/json_ld/disable_search', '__return_false' );
By default the schema is showing for the home page only and posts doesn’t have the Sitelinks Searchbox schema
When I use
add_filter( 'rank_math/json_ld/disable_search', '__return_true' );
it removes the schema from home page.How do I add the schema to all the pages/posts.
The ticket ‘Enable Sitelinks Searchbox for all pages’ is closed to new replies.