How To add Translate Element To Website



• To add Google Translate Element On your website you have to paste the following code in your website code -

<div id="google_translate_element"></div>
<script type="text/javascript">// <![CDATA[
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element');
}
// ]]></script>
<script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit" type="text/javascript"></script>

• For Blogger

1 - Open Layout Tab 
2 - click on new gadget
3 - click on add javascript/html
4 -  paste this code and save the gadget
                          OR
• You can paste this code to your theme code in theme tab 



Comments