-
-
Notifications
You must be signed in to change notification settings - Fork 603
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:
-
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.
-
Then 2 keys will be generated but you only need to copy the Content API Key.
-
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>
-
Remember that you have to replace YOUR_CONTENT_API_KEY_GOES_HERE with the Content API Key that you got in step 2.
-
Finally click on the Save button and refresh your blog page to see the search button.