Skip to content
Sign in

Add Browser Search

Publish your site's search as an OpenSearch description, so browsers offer to add it as a search engine and can search your site from the address bar.

Not scanned yet WordPress plugin 10 installs

Install in

No install steps yet

Follow the steps on the source page.

Add Browser Search makes your WordPress search available to the browsers your visitors use. It publishes an OpenSearch description of your search at a stable address, /opensearch.xml, and points every page of your site at it. A browser that reads it can offer “add this search engine”, and once it is added your visitors search your site straight from the address bar, without opening it first.

It works the moment you activate it. Every field has a sensible default read from your site, so the engine follows your site title, tagline and site icon when you change them. The Settings page is there for when you want to change something.

What it publishes

  • A valid OpenSearch 1.1 description, served as application/opensearchdescription+xml, with the name (at most 16 characters, as the standard says), the description, an optional contact and tags, the icon, the search address, the search form page and a self link browsers use to keep the engine up to date.
  • Search suggestions, on by default: while someone types, the browser asks your site for matching titles. The answer comes from a small public REST route that searches the titles of published posts and pages, lists at most 8, never lists password-protected posts and is cached for a minute.
  • A <link rel="search"> tag in the head of every page: that is what browsers look for.

Settings

Under Settings › Add Browser Search:

  • Name, Description, Contact, Tags. Empty means the site title, the tagline, none and none.
  • Icon address. Empty means your site icon (Appearance › Customize › Site Identity), advertised at 16 and 64 pixels.
  • Search address. Where the browser sends the typed words, with {searchTerms} where they go. Empty means your own search (/?s={searchTerms}). You can point it elsewhere, for instance at a Google Programmable Search page.
  • Search page. The page with your search form. Empty means your home page.
  • Suggestions. On or off.
  • The address of the description, with Copy and Open buttons, a preview of the XML browsers receive, and short notes on how Firefox and the Chromium browsers pick the engine up.

For developers

  • add_browser_search_url() returns the address of the description.
  • The add_browser_search_suggestions_limit filter changes how many suggestions are returned (1 to 10, 8 by default).
  • The add_browser_search_suggestions_post_types filter changes which post types are searched (post and page by default).
  • The suggestions are at /wp-json/add-browser-search/v1/suggest?q=… and answer ["query", ["title", …]].

Documentation and source: github.com/wpbones/add-browser-search. Built on the WP Bones framework.

Written by Joobi from the project's own listing. See the source page

browseropensearchsearchsearch enginesuggestions
26 Nov 2026
Version 2.0.1 released. Not scanned yet.

2.0.1

  • Translations load through WP Bones 3.4.1, which reads the plugin’s Text Domain and Domain Path; the plugin no longer loads them itself. The Domain Path header now has the leading slash WordPress documents. The translations a site sees do not change.

2.0.0

A rewrite. The plugin keeps its purpose and its folder and file names, so an update does not deactivate it, and everything else is new. It now needs WordPress 6.6 and PHP 8.1 (1.x was written for WordPress 2.6).

What changes for a site that used 1.x:

  • Your settings are migrated. On the first load the 1.x settings (wp_abs_settings) are moved into the new ones and the old option is deleted. Name, description, contact, tags, the icon (the 64 pixel image if you set one, else a favicon of your own), the search address and the search page all come across. Values that were the site’s own defaults (title, tagline, favicon.ico in the site root, /?s={searchTerms}, the home page) become empty fields, so they follow your site from now on. The settings page tells you once that this happened.
  • The address stays /opensearch.xml. It is now a proper rewrite rule (flushed on activation and deactivation) and is served as application/opensearchdescription+xml, not as text/html. The old plugin had no template tag; the constants OPENSEARCH_XML and WPABS_VERSION still exist.
  • The settings page moved and was rewritten. It is Settings › Add Browser Search. The 1.x page had no nonce and no sanitising; this one checks the capability and a nonce, sanitises every field, and tells you which field it refused and why.
  • The administrator’s email is no longer the default contact. 1.x published it by default. The contact is empty unless you fill it in: a 1.x contact equal to the site’s administration email is dropped by the migration, and any other address you entered comes across as it was.
  • A name over 16 characters is cut, as OpenSearch requires (a longer name made the description invalid).
  • The icon: your site icon is advertised at 16 and 64 pixels, with width, height and type, instead of a guessed /favicon.ico.
  • New: search suggestions in the browser’s address bar, from a small public REST route (on by default, can be turned off).
  • New: the description declares InputEncoding, a self link and moz:SearchForm, and the output is escaped (1.x printed the settings as they were typed).
  • New: Italian, Spanish, French, German and Brazilian Portuguese translations.
  • New: unit tests and a live check on WordPress 7.2.
  • The plugin’s options are removed when you delete it from the Plugins screen, not when you deactivate it.

1.x

  • 1.24 Minor rev
  • 1.23 Test on WordPress 2.7
  • 1.22 Fix options page
  • 1.21 Fix WordPress version/check bug
  • 1.2 Improve admin panel and add some extra setting for OpenSearch standard
  • 1.12 Fix link configuration panel in plugin description (thanks emanuele)
  • 1.11 Fix doc and links
  • 1.1 Added WP ABS configuration panel
  • 1.0 First release
8 Sep 2008Listed on Joobi from WordPress.org.

Follow this listing's changes (Atom feed)