Info archived from above link, in event link is no longer available in the future.
How do I get a search box to appear in my sitelinks?
To get your own search box, the only things you need are a website with a search tool of its own and the following piece of Schema code which you need to add to the HTML of your homepage…
< script type=”application/ld+json”>
{
“@context”: “http://schema.org”,
“@type”: “WebSite”,
“url”: “https://www.example.com/”,
“potentialAction”: {
“@type”: “SearchAction”,
“target”: “https://query.example.com/search?q={search_term_string}”,
“query-input”: “required name=search_term_string”
}
}
< /script>
Of course you’ll have to change the “url” and “target” examples to your own URL.
To check it works, submit your site to the structured data testing tool or for more detail check out the Google Developers page.
Much like most things in search, there’s no guarantee that Google will recognise your effort here, especially if your website doesn’t receive much traffic from branded navigational search. However, like most things in search, it’s worth a try.
Its more than likely that above <script> should work if entered into Flarums Custom Header Options.