Error in SearchAction-code
-
Hi,
Google Search Console is giving errors on the sitelinks search box. It’s says: missing target and missing url. The source code of our homepage is showing this at the moment:
{"@type":"SearchAction","target":"https://domain.net/?s={search_term_string}","query-input":"required name=search_term_string"}}
I guess it has to be something like:
"@type": "SearchAction", "target": "https://domain.net/?s={search_term_string}", "query-input": "required name=search_term_string"
As far as I can see the false code is generated by Yoast in this file: plugins/wordpress-seo/frontend/schema/class-schema-website.php
Where I found:
$data['potentialAction'] = array( '@type' => 'SearchAction', 'target' => $search_url, 'query-input' => 'required name=search_term_string', ); }
Any clue what’s wrong in that code?
Thanks in advance
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Error in SearchAction-code’ is closed to new replies.