Jump to content

Google Translate Plugin

Recommended Posts

Site URL: http://www.primecarechi.org

I added a custom code in the code injection in the footer to add a Google Translate option for the site and now it glitches the site and makes jump a bit to the left. Is there an issue with the margin space? Do I need to add padding to the code?

here is the code:
<div id="google_translate_element"></div><script type="text/javascript">
function googleTranslateElementInit() {
  new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.HORIZONTAL}, 'google_translate_element');
</script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>

I attached images of what the glitching looks like. It only appears on the left side of the site.

Screen Shot 2020-09-01 at 11.13.49 AM.png

Screen Shot 2020-09-01 at 11.14.51 AM.png

Screen Shot 2020-09-01 at 11.15.06 AM.png

Link to comment
  • Replies 1
  • Views 1.4k
  • 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.