Sponsor

header ads

Add google translate extension in Blogger website/ WordPress | ALL IN ONE

How to add google translate extension in your blogger website. In this article you will learn how can we add google translate extension. Like this👇

how-to-add-google-translate-extension

This extension is very important for you. Because by using this extension you can get more traffic on your website. When you will get lot of traffic on your website AdSense approval will become easily for u. 

#How to add google translate extension?

Sign into your blogger, then go into layout. and add new widget. where you want to add google translate. Blogger have a google translate extension, simply click on it and add in to your site. 
But if it's not work. What can you do for it. I have a solution for this propose. Add new widget and select HTML/JAVA scripts. Paste this code on 👇

<!doctype html>
  <h2>Click on the dropdown button to translate.</h2>
  <p>Translate this page:</p>

<div id="google_translate_element"></div>
 <script type="text/javascript"> 
   function googleTranslateElementInit() {
  new google.translate.TranslateElement({pageLanguage: 'en'}, 'google_translate_element');
  }
</script>

<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>

<p>You can translate the content of this page by selecting a language in the select box.</p>

</!doctype>

Then give a title and press save button. No refresh your site, you will see google translate

For WordPress:

If you want to add in just a post. Create a new post and then edit in HTML mode. Paste this code 👆 in your site.
Second method add new plugin and search for Google Translate. Install plugin and activate the plugin. Now refresh your site you will see google translate. But if you want to add all languages and change position and style,
then go into google translate plugin settings. You will be find there, add or remove languages, and also you will find change it's position option.

so this is the best to add google translate in your website. The java script method will be 100% work in your site. If any thing else comment please or you want to get another code or script say me in below. 

Post a Comment

0 Comments