Pages

Sunday, August 17, 2014

How to add Google Translate in your blog


Hello everyone to day I would like you to know about Google Translate in your blog. So you can Translate every language what you want to know. For example your blog is English but the Khmer can't see it, so you can get it now.

1). Copy the first code and go to Blogger >> Template >> Edit HTML >> Search for </head>, and just above it paste the code which you copied. Once done, Save the template and move to the next step.
2). Now copy and paste the second code anywhere on your site to display the Google Translate button in your blog. We would prefer you to add it in your sidebar, so that it could cover each and every page of your site. Go to Blogger >>Layout >> Add a Gadget >> Add HTML/JavaScript >> Paste the code in the HTML  area and save the widget.

CODE:
1). <meta content='6694ce6df2de1088-592cfba76988055f-g65621b618be50f7c-16' name='google-translate-customization'/>

2).<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>


Congratulations: You have successfully added Google Translate button in blogger, go and check your site to see if it is working fine. It

  I hope this tutorial may have helped you in learning How to add a Google translate button in Blogger. You can also use Bloggers built-in Translate widget incase you are not good with the coding. How many of you are using Google translate button on your site? Let us have a meaningful conversation and give maximum benefits to each other.

0 comments:

Post a Comment