Jump to content

Google sitelinks searchbox


Gabriel Torres

Recommended Posts

Posted

Hello,

I am wondering about this: https://developers.google.com/search/docs/data-types/sitelinks-searchbox

With our old platform, when googling "Clube do Hardware" (the name of our website), Google would combine the results and show a new search box under them. Now with IPS, this isn't happening anymore.

I checked the microdata that is required to make this happen, and apparently the default theme already have these tags added, so everything looks correctly configured at our end.

Google recomends to add these microdata tags:

<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>

They are correctly added by default:

<div id='elSearch' class='ipsPos_right' data-controller='core.front.core.quickSearch' itemprop="potentialAction" itemscope itemtype="http://schema.org/SearchAction" data-default="all">
<form accept-charset='utf-8' action='http://www.clubedohardware.com.br/search/' method='post'>
<meta itemprop="target" content="http://www.clubedohardware.com.br/search/?q={q}">
  (...)
<input type='search' id='elSearchField' placeholder='Pesquisar...' name='q' itemprop="query-input">
<button type='submit'><i class='fa fa-search'></i></button>

Google's Data Structured Tools recognizes the code correctly:

google1.thumb.png.ec6d5656f6d31d42df23b64d9369ce51.png

But, still, the search box isn't displayed within Google's results:

google2.thumb.png.7cb30026de7da83d4fb641a66de35fff.png

Any thoughts?

Cheers!

Posted

I think this does not have much to do with IPS. I have two sites with identical themes, version and structure. For one I have the search box on results but for the other dont.

Google decides and I dont know how it does

Posted
24 minutes ago, ABGenc said:

I think this does not have much to do with IPS. I have two sites with identical themes, version and structure. For one I have the search box on results but for the other dont.

Google decides and I dont know how it does

I think that's accurate. Google decided to display or not. I looked into this also and couldn't figure out how to get a search box up.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...