Saturday, February 10, 2007

A Better Search Box

In a way I'm reversing what I said in my previous post. After consideration, I've decided that a page optimized for AdSense should not make use of the technorati search box. Their search box takes you to their site where the search results display other blogs from their index. If you're building a regular site or blog this is a useful function, however for an AdSense optimized blog or site you want to narrow down the avenues for people to leave your site for another.

This is why I recommend using the search box widget at beautifulbeta. When you go to the site, the box is in the upper right and just under it, it says "add this widget to your blog". Click the link and it will take you to a widgets page. Simply click the widget and you will be prompted to log into your blogger / blogspot account. If you get an error, simply click "Back" and try it again. For some reason (for me at least) it doesn't take the first time.

I'm not sure if it'll work for non-blogger/blogspot users but heres the code and you can try it and see:

<form id="searchthis" action="/search" style="display: inline;"
method="get"><input id="search-box" name="q" type="text"><input
id="search-btn"value="Go!" type="submit"></form>

So now you still have a search box, only its providing results just from your pages where the searcher will be exposed to your AdSense ads. I still recommend listing your blog on technorati so simply log in and edit to remove their search box. Once again, many thanks to Hans at BeautifulBeta. Visit his site, for lots of nifty hacks and widgets to add more flair to your blogs.

No comments: