Have you noticed when you visit some sites, there's a bluish glow in the search engine field in Firefox. Like this:
What does that even mean? Well, it means you can add this site's search to the drop down list of search engines. This functionality is following the open search standard.
The things are actually pretty simple. You need to have an XML file <link>-ed to from your page.
For example on this blog I have this in the head:
<link rel="search" type="application/opensearchdescription+xml" href="http://www.phpied.com/wp-content/plugins/open-search/open-search-xml.php" title="phpied.com : Search in posts" />
So how do you add open search capability to your blog? With the OpenSearch plugin for WordPress, naturally.
BTW, if you're running PHP4 you might get errors during installation, in this case just open up the open-search-class.php and
- replace all "public static" with empty string
- replace all "private static" with empty string
- replace all "self::" with "OpenSearch::"
This is it, enjoy and if you want to change the default icon, you need to look into replacing the image found in
Here's what you get at the end:
And now your readers can add your search to their browser and quickly find content on your blog. Sweet.
This entry was posted on Friday, January 30th, 2009 and is filed under WordPress. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.