Problems, need help? Have a tip or advice? Post it here.
6 posts Page 1 of 1
Hi,

I'm looking for a way to get Google Sitelinks Search Box working https://developers.google.com/webmasters/richsnippets/sitelinkssearch

I suppose this can be done by editing the tags.php file is there some other way to do this since the tags file is a couch core file thus not so desirable to change.

Thanks
I load frameworks and write bugs on top of them, after that I rearrange the code so that it looks like a cool product.
Hi Tom,

Custom tags can always be added to the kfunctions.php file present in the addons folder. With that said, from reading the Google documentation I don't think this will be necessary.

Are you merely trying to get a search box to appear on your Google search results (like https://developers.google.com/webmasters/images/guiltyDogVideo.png) and use Couch for the actual search engine?

Or are you wanting to embed a Google search widget on your site like http://jsfiddle.net/2PC2f/72/show_html/?q=test+search?
Hi Cheesypoof,

Are you merely trying to get a search box to appear on your Google search results (like https://developers.google.com/webmaster ... gVideo.png) and use Couch for the actual search engine?


Yes, I'm looking at this.

Thanks again.
I load frameworks and write bugs on top of them, after that I rearrange the code so that it looks like a cool product.
I believe you just need to place the following on your home page and wait for Google to crawl your site again:
Code: Select all
<script type="application/ld+json">
{
    "@context": "http://schema.org",
    "@type": "WebSite",
    "url": "<cms:show k_site_link/>",
    "potentialAction": {
        "@type": "SearchAction",
        "target": "<cms:link 'search.php'/>?s={s}",
        "query-input": "required name=s"
    }
}
</script>
This assumes that your search results are displayed on a dedicated search.php template. Do adjust the link if this is not the case.

I've never implemented this before, so I'm quite curious if it will work. Do let me know the outcome.
I was playing with the meta tag version, Anyhow I'll try your JS version at once and see what happens.

Thanks, I'll keep you posted on this.
I load frameworks and write bugs on top of them, after that I rearrange the code so that it looks like a cool product.
Hi,

I'm using this now and works o.k.

Thanks !
I load frameworks and write bugs on top of them, after that I rearrange the code so that it looks like a cool product.
6 posts Page 1 of 1