Robert Birming

Search Feature for Bear Blog

Bear searching

I've previously written about the absence of a search function on many modern blogging platforms. Although there is a way to add kind of a Bear search feature, it's not a 'real' search function.

Since I personally find the lack of such an essential feature almost as peculiar as not being able to include links, I embarked on a…well, search

I initially tried the option that Google provides but quickly dismissed it for various reasons. A little more searching led me to a help page on the search engine DuckDuckGo. It turned out that they offer very generous possibilities in terms of customizing the page for search results.

I experimented and created something that isn't perfect but is definitely better than nothing. I've now added a Search page to the main menu on my blog. I'll probably do a bit more with it in the future, maybe something for the Bearming theme, but this will do for now.

If you're interested in creating something similar for your blog, simply copy, paste, and adjust the code to your preferences (see DuckDuckGo's help page for more information):

  <form action="https://duckduckgo.com/" method="get">
  <label><input type="search" id="search" name="q"></label>
  <input type="hidden" name="sites" value="your-blog.com">
  <input type="hidden" name="kx" value="99ccee">
  <input type="hidden" name="k7" value="002233">
  <input type="hidden" name="k8" value="f2f2f2">
  <input type="hidden" name="k9" value="f2f2f2">
  <input type="hidden" name="kaa" value="f2f2f2">
  <input type="hidden" name="ka" value="Atkinson Hyperlegible">
  <input type="hidden" name="kt" value="Atkinson Hyperlegible">
  <input type="hidden" name="ko" value="-2">
  <input type="hidden" name="k1" value="-1">
   <input type="hidden" name="kz" value="-1">
   <input type="hidden" name="km" value="m">
   <input type="hidden" name="kf" value="-1">
  <input type="submit" value="Search">
</form>