Google Translate Element

User 482858 Photo


Registered User
70 posts

Hi,

Earlier today I suggested that the Shopping Cart Designer Pro include the Google Translate Element, so that people from different countries could read the shop text in their own language, but if I wanted to incorporate this feature into my shops now, where would I put the Google Translate Element code snippet shown below:

<!-- Google Translate Element --> <div id="google_translate_element" style="display:block"></div><script> function googleTranslateElementInit() { new google.translate.TranslateElement({pageLanguage: "af"}, "google_translate_element"); };</script> <script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>

Could anyone give me a clue, please?

Thank you very much.
It's a kind of magic!
http://www.magicsystems.com
Home of the Magic CAD/CAM Sweet
User 103173 Photo


VP of Software Development
0 posts

Just paste that code into each product details on on each page using the HTML Tool and it will work.

Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.
User 2192052 Photo


Registered User
1 post

I actually tried pasting the Google Translate code by using the HTML tool but it didn't work. I the code on different area of my page and all I see whe I preview it is a small box with an x. Please advise. Thank you, Angela
User 103173 Photo


VP of Software Development
0 posts

Angela Riley wrote:
I actually tried pasting the Google Translate code by using the HTML tool but it didn't work. I the code on different area of my page and all I see whe I preview it is a small box with an x. Please advise. Thank you, Angela

Your browser is probably blocking it locally. Try uploading it and see if that helps.
Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.