Jump to content

Google Programmable Search on Site (Off Primary Navigation)

Recommended Posts

Site URL: https://www.harborcarenh.org/

Hi folks,

 

Longtime fan, first-time caller here. I inherited responsibilities for a Squarespace website and am much more familiar with Joomla, WordPress and Drupal, but I've found this forum a huge help.

The native Squarespace search engine on this website doesn't work well. I suspect this is due to the architecture of the website -- with LONG index pages containing many other pages, the end result being that the core is somehow confused -- but I thought a workaround would be to install a Google Programmable Search on the site. I've always found that using Google products improves search results, but that may be voodoo.

Unfortunately, I can add the code for this search bar to inside pages (and they load fine), but whenever I bring those pages to the primary navigation or footer position, the system loads a page without the search. Again, this is a guess, but I believe this is an AJAX loading issue conflicting with the Google script. This is what the Google code looks like:

<script async src="https://cse.google.com/cse.js?cx=93d5adf5b23ee11a5"></script>
<div class="gcse-search"></div>

Has anyone experienced this issue? Or can anyone suggest why the Squarespace search engine is fairly inept?

Thanks,

Randy

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.