(New features in bold.)
- Optional default value.
- Optional, custom widget title.
- Optional onfocus and onblur listeners.
- Optional, customizable focus and blur colors.
- Custom button value.
- Custom field size.
The built-in search widget has only one of these features, the optional, custom title.
Onfocus and Onblur
In order to use the blur and focus colors, you must enable the onfocus and onblur event listeners. In order to use the listeners, you must specify a default value (otherwise none of this makes sense). Here’s an example:### Bug Fixes
A pretty serious typo meant that none of the internationalization code worked correctly. This has been fixed, and enUS, enGB, and frFR localizations are available. deDE is coming. If you’d like to translate, there is a .pot file included in the languages directory.
Better Search Widget is released under the MIT License. If you use it, or have suggestions for new features or bug fixes, let me know!
You can download Better Search Widget 1.1 now in a Zip file. Or, to save yourself some trouble, you can check it out of Subversion from
svn co svn://jamessocol.com/better-search-widget/tags/1.1.0 ./better-search-widget
(Run that in your
wp-content/plugins directory.) Subversion will make it easiest to upgrade later.
Soon, though probably not today, I will be releasing Better Search Widget 2, which will take advantage of the new Widget API in WordPress 2.8. This will add support for multiple instances of the widget, but will require at least WordPress 2.8. You should upgrade, anyway.