Friday, 3 Apr 2009

Stupid tumblr search

I can’t remember when my tumblr search last worked and I got fed up and finally decided to fix it. Well it took me an hour of searching and trying scripts but I finally found one that worked. It’s the integrated tumblr (read: official) search.

It’s not as good as the old one. The old one would return results in link form I think. Even if it didn’t, this one sucks because you can’t edit the format of the search itself, or at least I am having trouble with the default spacing of the search button and the search box itself.

At least it works.

Here’s what you do, add the following text to your old search box (if you had a broken one like mine) or just add this text:

<form action="/search" method="get">
    <input type="text" name="q" value="{SearchQuery}"/>
    <input type="submit" value="Search"/>
</form>

Props go to Matt Buchanan for figuring this out.

What you’ll find when you insert this blurb is that the formatting might be a little off. I got creative and looked at Matt’s source code for his blog. He has a cool widget that I can’t duplicate even by taking his source code for the search box. Here’s what I’ve used instead:

<form action=”/search” method=”get”>
<input type=”text” name=”q” value=”” id=”searchfield” />
<input type=”image” src=”http://theme.matthewbuchanan.name/img/search-go.png” class=”button” />
</form>

posted at 12:04pm
blog comments powered by Disqus