Hi,
I'm trying to add the Google Translate snippet on my site, but using PWG Stuffs or Advanced Menu Manager doesn't do anything.
The code is the following:
<div id="google_translate_element"></div>
<script>
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'en',
gaTrack: true,
gaId: 'xx-xxxxxxxx-x',
layout: google.translate.TranslateElement.InlineLayout.SIMPLE
}, 'google_translate_element');
}
</script>
<script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit">
</script>
If I add the code directly into the header, the code is working, but i'd like it integrated somehow into the main block or the menu.
Thank you,
Bogdan
Offline
Hello,
Have you tried [extension by plg] PWG Stuffs & [extension by grum] Advanced Menu Manager ?
Offline
Bogdan wrote:
Hi,
I'm trying to add the Google Translate snippet on my site, but using PWG Stuffs or Advanced Menu Manager doesn't do anything.
I think he did (-;þ
Offline
Okay I'm bad :-(
But the code works. I insert in [extension by sakkhho] Statistics, and had my translate button.
Offline
Hi guys, thanks for the help.
In the end i adopted another solution.
Offline