Smart

Follow

Twitter

Share

Twitter Linkedin Facebook

Add Search to Your Site

Smart Theme includes search functionality. See how to enable it with a few easy steps.

Add Search to Your Site

Smart Theme includes search functionality. To enable it, follow these steps:

  1. Go to your Ghost admin dashboard (https://yoursite.com/ghost)
  2. In the sidebar, go to Integrations
  3. Click `Add Custom Integration` and call it "search" (the name's not important). Save the integration
  4. Copy your Content API key
  5. Click the cogwheel ⚙️ to go to settings
  6. Go to Code Injection
  7. Add the following code to your Site Header (case sensitive)
<script>
    const SEARCH_API = 'THE CONTENT API KEY YOU COPIED EARLIER';</script>

8. Save the code and refresh your site. A search icon 🔎 will now appear!

Things to know

P.S. Search is active on this site. Click the search icon to try it out!