How to add sitelinks searchbox using yoast SEO plugin
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 www.example.com/?s=query 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 'http://example.com/?search={search_term}'; } add_filter('wpseo_json_ld_search_url', 'yoast_change_ssb_search' );
You have to place your search URL at the place of “http://example.com/?search=” and hit the save button.
Now you have the sitelink search box running to your website.
Also read:
- Use of LSI keywords for better Search rankings
- Hidden SEO formula of Wikipedia that you should definitely know
- The need of CDN server to speedup your WordPress blog.
- 4 online tools for checking website speed
If you liked the post then please share it, and to ask a question or for starting a conversation use the comment section below.