In Weebly's HTML/CSS editor, I am having an issue with the Google Translate dropdown option (Language in English, Spanish) appearing in the editor preview but not on the live website.
I copied and pasted the code directly from Google Translate into the header page of our website using the Edit HTML/CSS function. This is the code:
<div id="google_translate_element"></div>
<script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'en',
includedLanguages: 'es',
layout: google.translate.TranslateElement.InlineLayout.SIMPLE},
'google_translate_element');
}
</script>
<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
The dropdown appeared on the live website before, but isn't working now.
I tried viewing the live website with different browsers like Chrome, IE, and Safari, and none of them show the language dropdown. This happened across my computer and my co-worker’s, on both Mac and PC.
I also checked Adobe Flash in case the plugin version was the issue and I have the most up-to-date version (11).
Any suggestions on where I could look would be appreciated.