Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0
CurryWebServices

Sidebar breaks with Google Translate element code injection

Question

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');
	}
</script>

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!

Share this post


Link to post

2 answers to this question

Recommended Posts

Create an account or sign in to comment

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


×
×
  • Create New...