-
AuthorPosts
-
September 2, 2015 at 11:05 am #496973
Hi guys,
Is there any way i can add the following Google Translator code to get the add-on to appear on the bottom right of the footer?
<div id=”google_translate_element”></div><script type=”text/javascript”>
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: ‘en’, 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>September 2, 2015 at 11:29 am #496986Sorry, I mean top right on the header!!!
It is currently in the footer already via a widget.
September 2, 2015 at 12:25 pm #497013Hey!
Please add it to your header using a widget area – http://kriesi.at/documentation/enfold/adding-a-widget-area-to-the-header/
Then you can adjust CSS code provided in the link to change its position :)Cheers!
YigitSeptember 2, 2015 at 2:25 pm #497115Hi Yigit,
For some reason that all went horribly wrong – my fault I dont think I pasted the code properly. It stretched right across the page for some reason. I’ve just recovered the functions file from a backup so it’s all working again now. Althought the file I used to recover it was from from an older version of Enfold, but it seems ok.
Any ideas why it spanned the whole page?
September 3, 2015 at 8:00 am #497524Hi,
Not sure why that happened, could you link to a page where we can see the problem please?
Thanks,
RikardSeptember 3, 2015 at 3:09 pm #497677Hi Rikard,
Is there any way i can set it just on a single page rather than accross the whole site – just so i can send over a page no one else can see.
September 3, 2015 at 3:14 pm #497680Hey!
Please create a temporary admin login and post it here privately so we can try implementing it for you. Please post FTP access here as well, so we can fix in case something goes wrong.
Cheers!
YigitSeptember 3, 2015 at 4:37 pm #497769Hi Yigit,
Thank you ever so much for your help but think for the moment we’re going to keep it at the bottom.
Thank you again for continued amazing support!!!!!
-
AuthorPosts
- The topic ‘Google Translate’ is closed to new replies.