How to add sitelinks searchbox using yoast SEO plugin


There is no doubt that yoast is one of the top free SEO plugins that you need for onpage optimization.


The person into blogging have to know about SEO to make an impact on their search rankings, In WordPress when we talk about SEO then the name of yoast pops in at the top . Yoast created an SEO plugin which is by far at the top of the list of free SEO plugins for WordPress.

One of the great feature of this plugin is that it can be helpful to add sitelink search box to Google search. In recent updates this feature is built-in the plugin, but you will not be able to find it as to enable this you have to make few changes tin the code.

Earlier we did a tutorial on adding sitelink searchbox to Google search, which used a coding and a plugin method. If you are using yoast plugin to optimize your on-page SEO then you can use this to get the sitelink searchbox without going through the codding or adding any additional plugin.

How to enable sitelinks searchbox using yoast SEO plugin.

First you have to find the search URL, If you have a Search url like then you are good to go if not the you have to enter the below code to your functions.php file.

function yoast_change_ssb_search() {
 return '{search_term}';
 add_filter('wpseo_json_ld_search_url', 'yoast_change_ssb_search' );

You have to place your search URL at the place of “” and hit the save button.

Now you have the sitelink search box running to your website.

Also read:

If you liked the post then please share it, and to ask a question or for starting a conversation use the comment section below.

You can follow us on twitter, facebook, Google+

Leave a Reply

Your email address will not be published. Required fields are marked *