Skip to content

Instantly share code, notes, and snippets.

@inetbiz
Created June 7, 2016 14:12
Show Gist options
  • Save inetbiz/394b6181a84eb365f2957acb1ebf4c0d to your computer and use it in GitHub Desktop.
Save inetbiz/394b6181a84eb365f2957acb1ebf4c0d to your computer and use it in GitHub Desktop.
OpenSearch - Federated Search XML Feature of ALL Web Browsers
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>Denver Prophit Jr</ShortName>
<Description>Open Source Software And Social Media Enthusiast</Description>
<Image height="16" width="16" type="image/x-icon">favicon.ico</Image>
<Url type="text/html" method="get" template="https://www.denverprophit.us/?s={searchTerms}"/>
<moz:SearchForm>https://www.denverprophit.us/</moz:SearchForm>
</OpenSearchDescription>
@inetbiz
Copy link
Author

inetbiz commented Jun 7, 2016

SAVE the code above as a FILE in your /wp-content/ folder.
Then:
Insert this line in the header of your theme or header scripts options of your WordPress theme.

<link rel="search" type="application/opensearchdescription+xml" href="/wp-content/opensearch.xml" title="DenverProphit.US" />

Modify it with your title. Store the above opensearch.xml in your wp-content folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment