• Learn how AI and automation actually work in your Help Desk. Ask our experts how to improve team speed and customer happiness! AMA Nov 17-21.

    Ask us anything

CMS Development

TaylorLioy
Participant

Google Translate added to HS site

SOLVE

I'm trying to add the google translate language switch to my HS site. I added this code snipped (generated from google translate) to the site header and it saved just fine. But the issue is the google translate widget is not showing up on my site. It should be displaying in the bottom left corner. I've given it about an hour to populate on the live site, and still no luck. Any ideas what I'm doing wrong? Thank you in advance!

 

Here's the code snipped I added to the site header:

<script>window.gtranslateSettings = {"default_language":"en","native_language_names":true,"wrapper_selector":".gtranslate_wrapper"};</script><script src="https://cdn.gtranslate.net/widgets/latest/float.js" defer></script>

0 Upvotes
1 Accepted solution
DilionSmith
Solution
Participant

Google Translate added to HS site

SOLVE

Hey Taylor,

There could be multiple reasons why the widget is not showing up.

First I would try opening the page in an incongnito browser and see if its just a browser cache issue.

Second thing you could do is remove 'wrapper_selector' from the code, this will make the widget load in a default position.

Here's an updated code snippet:

<script>
  window.gtranslateSettings = {
    "default_language": "en",
    "native_language_names": true
  };
</script>
<script src="https://cdn.gtranslate.net/widgets/latest/float.js" defer></script>

View solution in original post

0 Upvotes
1 Reply 1
DilionSmith
Solution
Participant

Google Translate added to HS site

SOLVE

Hey Taylor,

There could be multiple reasons why the widget is not showing up.

First I would try opening the page in an incongnito browser and see if its just a browser cache issue.

Second thing you could do is remove 'wrapper_selector' from the code, this will make the widget load in a default position.

Here's an updated code snippet:

<script>
  window.gtranslateSettings = {
    "default_language": "en",
    "native_language_names": true
  };
</script>
<script src="https://cdn.gtranslate.net/widgets/latest/float.js" defer></script>
0 Upvotes