OpenSearch – Search Field For Mozilla And Internet Explorer With WordPress

Nowadays search field in your browser improved quite a bit, even IE supports OpenSearch format. But what is so great about OpenSearch and how easy it is to use with your WordPress installation has two aspects: WordPress comes already with OpenSearch and it’s easy configurable with XML.

in IE 7

You just have to put a link in your theme and a xml file on your server to let the browser know that your blog supports the search field. So go ahead and improve your Plugin with little work and no use of a Plugin.

The following code should explain it. Adjust the syntax and link to the favicon and xml-file.

After you uploaded both files (favicon.ico und os.xml) add a link into the header.php of your theme. You can use the code one by one if you put os.xml in your root. After that it’s possible to integrate your blog in Firefox and Internet Explorer.

The declaration of each XML tag is well documented on the OpenSearch website.

for the head area in your template – header.php:

XML file:

Copy code, adjust and save as os.xml, then upload on your server. []
	Use to search on blog. [] Weblog Search
	Weblog WordPress Webdevelopment
	Frank Bueltge
	    Search data Copyright 2007, [], All Rights Reserved





2 responses to “OpenSearch – Search Field For Mozilla And Internet Explorer With WordPress”

  1. […] Alternatively you can offer Open Search, which is available via Add-on in some browsers and helpful for some „Powerusers“. How that works? You can read the tutorial „OpenSearch – Searchfield for Mozilla and Internet Explorer with WordPress“ […]

  2. hypno Avatar

    Ahh, i am still getting errors like: Could not parse XML file http:/mysite/wp-content/uploads/opensearch/search.xml: org.xml.sax.SAXParseException: The reference to entity “pw” must end with the ‘;’ delimiter. Where should that ‘;’ be placed? Sitting here like a duck for 3 hours…