Skip to content

How to enable search

Eduardo Gómez Vásquez edited this page May 11, 2019 · 4 revisions

To enable the search you have to do the following:

  1. In the Ghost control panel go to Integrations and click on the Add custom integration button. You can name it as you like but I recommend you name it Search.

  2. Then 2 keys will be generated but you only need to copy the Content API Key.

  3. After that go to the Code injection menu and paste the following code into the box corresponding to the Site Header:

<script>
  const ghostSearchApiKey = 'YOUR_CONTENT_API_KEY_GOES_HERE'
</script>
  1. Remember that you have to replace YOUR_CONTENT_API_KEY_GOES_HERE with the Content API Key that you got in step 2.

  2. Finally click on the Save button and refresh your blog page to see the search button.