Totally Zenned
- Join Date:
- Aug 2014
- Location:
- Lisbon
- Posts:
- 597
- Plugin Contributions:
- 0
Google Sitelinks Searchbox - is this the right way?
Hi
Not sure if this is the right place to post this, but I've become aware of a Sitelinks Searchbox using the schema markup, etc....
ok. I've done so ( this is a partial code of json /ld file :
<?php if ( $this_is_home_page ) { ?>
"potentialAction": {
"@type": "SearchAction",
"target": "<?php echo $canonicalLink; ?>index.php?main_page=advanced_search_result&search_in_description=1&keyword={search_term_string}",
"query-input": "required name=search_term_string"
},
<?php } ?>
Testing this , I get no errors... but I also don't see no results and probably will take time.
So just to ask, if anyone has done this, and if the "target" link is ok .
...oh, and is it wise to have this only in the home page ? I don't even remember why I've done so using the if ( $this_is_home_page )
Tahnks
“Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison