pfefferle / wordpress-open-search-document

Create an Open Search Document for your blog
https://wordpress.org/plugins/open-search-document/
Other
7 stars 2 forks source link
hacktoberfest opensearch opensearch-document plugin wordpress wordpress-plugin

WordPress WordPress plugin WordPress

Open Search

Contributors: pfefferle, johnnoone
Tags: open search, opensearch, open search document, osd, search
Requires at least: 4.6
Tested up to: 6.6
Stable tag: 4.1.1
License: GPL-2.0-or-later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Create an OpenSearch Document for your blog.

description

The plugin creates an OpenSearch Document for your blog.

It supports Google Chromes "Tab to Search" and "search_provider" WebExtension, Firefox' "OpenSearch plugins", Safaris "Quick Website Search", and "custom searches" for Microsofts Edge browser.

From the spec:

Search clients can use OpenSearch description documents to learn about the public interface of a search engine. These description documents contain parameterized URL templates that indicate how the search client should make search requests. Search engines can use the OpenSearch response elements to add search metadata to results in a variety of content formats.

Other integrations and extensions:

Screenshots

1. Firefox OpenSearch plugins

Firefox OpenSearch plugins

2. Safari Quick Website Search

Safari Quick Website Search

3. Chrome Tab to Search

Chrome Tab to Search

Frequently Asked Questions

Chromes "Tab to Search" no longer works

Chromes "Tab to Search" is now an opt-in feature. Go to chrome://settings/searchEngines, search for your Website and press the "Activate" button.

How to add query params to the Search-URLs

You can add custom params to the search URL using the osd_search_url_template filter.

function custom_osd_extend( $url, $type ) {
    $url = add_query_arg( 'mtm_campaign', 'opensearch', $url );

    return $url;
}
add_filter( 'osd_search_url_template', 'custom_osd_extend', 10, 2 );

Changelog

4.1.1

4.1.0

4.0.1

4.0.0

3.0.3

3.0.2

3.0.1

3.0.0

2.1.2

2.1.1

2.1.0

2.0.0

1.3.1

1.3

1.2.2

1.2.1

1.2

1.1

1.0

Installation

  1. Upload open-search-document-folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the Plugins menu in WordPress
  3. that's it :)