Jump to content

Sidebar breaks with Google Translate element code injection

Recommended Posts

Site URL: https://www.grotonchiropractor.com/

I used the following code to add Google Translate to this website.  

Code Block in Content Body:

<div id=google_translate_element></div>

Code Injection Area:

<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>

<script type="text/javascript">
	function googleTranslateElementInit() {
		new google.translate.TranslateElement({pageLanguage: 'en'}, 'google_translate_element');

After installing the element and injecting the <script> code, the hamburger sidebar menu stopped working.

I cannot quite tell, but it looks like the Google Translate screen overlay is blocking access to the sidebar menu.

Any ideas how I can fix this so that my sidebar menu is still accessible with the Google Translate element added?

I currently have the code removed so that the site works as intended.

Any help would be appreciated!

Link to comment
  • Replies 2
  • Views 637
  • Created
  • Last Reply


This topic is now archived and is closed to further replies.

  • 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.