We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
End-to-End Tutorial Putting Monocle on my Website
Goal of this tutorial
At the end of this tutorial, we want to have Monocle in the Navigation bar of our Squarespace site. It should include a cool little search icon and enable my visitors to find anything on my site.
Part 1: Signing Up
- On monocle-search.com, click on “Register” in the upper right corner.
- Enter your email, a password, and any other information the form is asking for, and click on “Create an account”.
Part 2: Setting Up Monocle
- You’re in! Now you have to let Monocle know which site you want to have the search feature on. Put your site’s URL in the “URL” field. Attention you can only use sites that are public (and not behind a password)! For the purpose of this tutorial, I’ll be using https://demo.monocle-search.com.
- Choose your plan – for starters, it’s totally fine to go with the pre-selected Free trial. Just click “Next”.
- Success! While you’re digesting the next steps, Monocle is working away in the background and “indexing” your site, which means it’s reading and sorting all available content. You’re only two tasks away from having a blazingly fast search bar on your site now!
- First, add the script tag to your site. You should see the following instructions (with a different code in siteid): Just click on the little clipboard in the upper right, or mark and copy the script. Now, head over to your Squarespace page and to to Pages → Website Tools → Code Injection. Now, paste the script in the Header sections like so: Don’t forget to click “Save” in the upper left after you’re done!
Part 3: Implementing Monocle on your Site
In general, this bit gives you a ton of flexibility for how you want to make search look on your site. The trick is the following: you simply need to link to /search. If a user clicks on this link, the search interface will open immediately in the foreground. Magic!
- Since we want to have a Search link in the Navigation bar, we’ll create a “Link” in Squarespace. In the Main Navigation, click on the plus (+) icon and choose “Link”. In the window that pops up now, write whatever you want people to click on – in our case, that is “🔎 Search”. Feel free to copy and paste from here! In the “URL” field, simply enter “/search”. It should now look like this: Click “Save” in the upper right and you’re done!
- If everything worked as intended, you should now see the “🔎 Search” field in your navigation bar. Why don’t you go ahead and click on it? The search interface should pop up and you can find everything on your site!
Congratulations!
This concludes this tutorial.
If you’re the artistic type, you can now style and adjust Monocle as you like, but that will be covered in another tutorial at a later time.