Google Sitelinks Search Box

Posted in: Newsmag
Post count: 217

Hi,

how can I implement the Google Sitelinks Search Box in the Newsmag theme?

https://developers.google.com/structured-data/slsb-overview

I don’t want a plugin for this. This code has to be adapted for WordPress and integrated to achieve the goal…

<div itemscope itemtype="http://schema.org/WebSite">
<meta itemprop="url" content="https://www.example.com/"/>
<form itemprop="potentialAction" itemscope itemtype="http://schema.org/SearchAction">
<meta itemprop="target" content="https://query.example.com/search?q={search_term_string}"/>
<input itemprop="query-input" type="text" name="search_term_string" required/>
<input type="submit"/>
</form>
</div>

Can you also add this feature to a future version of the theme?

Thank you,
Martin

Post count: 1291

Hi,

This comes in WordPress SEO by Yoast – https://yoast.com/google-search-sitelinks/

You could check some info here – http://www.joelsays.com/enable-google-sitelinks-search-box/

You could also try this function:

http://pastebin.com/nsvfJ009

We don’t plan to add it because we already recommend it for SEO and OG data and it will be kind of a useless feature.

Thank you.

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newsmag’ is closed to new topics and replies.