Searchbox plugin – Add search to posts and pages

28 Sep

The searchbox wordpress plugin adds a seachbox short code which generates a search form when the page or post is displayed.

It is wordpress MU compatible both when used as regular plugin and as an MU plugin.

Typical usage: [searchbox]

If you find it useful, don’t be to shy to

Parameters

  • class

    Can be used to add a name of a CSS class for the form
    Example: [searchbox class=search]

  • plugins

    Can be used to apply the get_search_form filter to the form. Might be useful if you have some plugins which add extra functionality to the search widget.
    Example: [searchbox plugins=1]

  • Full shortcode format

    Can be used to inser text (or any HTML) in the form above the input fields. Usefull if you want that text to be styled differently.
    Example: [searchbox]Use the search Lok[/searchbox]

styling

The form do not reuse the id’s of the normal seach form and therefor it should result in a bare form for most themes.
If you wish to style the form you should specify your own class for the form with the class attribute.

The classes specified for the different sections of the form are

  • searchtext – The class of the text
  • searchbox – The class of the input box
  • searchsubmit – The class of the submit bottun

Installation

1. Download the plugin and unzip it (or not, if you are going to use the built in wordpress plugin installer)
2. Upload the unzipped folder searchbox to your plugins directory.
3. Activate the plugin through the ‘Plugins’ menu in WordPress

Changelog

  • 1.0

Initial release.

No comments yet

Leave a Reply