Today I will like to show you how to implement and show google translator in your blog or website to use it for the translation purpose of your blog or website.
Here I have shown the procedure to use google translator on wordpress twenty ten theme but you can use this google translator code in any wordpress theme. Not only wordpress..you can also use this code in blogger, joomla or any other type of websites.
Here is the google translator code
<div id="google_translate_element"></div><script> function googleTranslateElementInit() { new google.translate.TranslateElement({ pageLanguage: 'en' }, 'google_translate_element'); } </script><script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>Here I have shown how to place google translator on twenty ten theme of wordpress.
1. Login to your wordpress dashboard
2. Go to Appearance -> Editor
3. Click and Open the Header.php file check the image below. In the picture I have marked which portion need to be replaced by google translator code.
Note: Here I have replaced Site Description (just to show you) by Google Traslator option. you can add this widget in anywhere of your blog.
[click the image for full view]
4. Paste the code and Click on Update File. (check the image)
[click the image for full view]
5. Refresh your page … You are done.
Facing Problem to put or use Google Translator in your blog or website?? Feel free to knock me. Share your problem in the comments portion.
You may also like to check1. WordPress.com Visitor Tracking System:Know who is visiting your site
2. WordPress.com Flickr Animated Flash Gallery For Blog: Show your flickr photos to your readers
3. WordPress.com Photo gallery Slide Show : Show your images stored in WordPress with WordPress animated photo gallery
4.WordPress.com Visitors Country Flag : Where from your users visiting you.
You can take my personal help in skype : om2000_cuet
thank you for that helpfull advice sent you a message hope to use your service.Andrew davies
LikeLike
Andrew I have replied to your mail.
The problem you have mailed me have several solutions….Would you mind to check the mail i have sent to you?
LikeLike
hi,
can i use this same idea in a different theme?
LikeLike
HI Chris..
Yes..you can try..
Regards
Om
LikeLike
Hi.
I’ve got it all working fine – however, we have noticed that the navigation menu disappears when the pages are translated. Any ideas?
LikeLike
HI Tania…
WOuld you m ind to share me the website link where you have implemented this google translator?
Regards
Om
LikeLike
I’ve just realised, it doesn’t actually “disappear”. The red bar behind the menu moves up and as the navigation text is white it can’t be read. Strange!
LikeLike
Hi Tania…
Don’t remove the Google Translator now….let me check.. need some time though..i will inform u after checking is done within today (my time)
Regards
Om
LikeLike
Hi Tania..
I found u have solved this problem in another way by moving the Translator to the right… is it?
Regards
Om
LikeLike
Hi Om,
I had to actually remove the red bar I had behind the menu. Not sure why it was interfering with the plugin but it was. Bit of a workaround – but hey – as long as the client is happy with it, I’m happy!
Thanks for your quick responses.
LikeLike
Its Ok Tania..
No Problem… I f you face any problem let me know..
Regards
Om
LikeLike
Hi Om, thank you very much for this helpful article.
I would like to use it for my blog http://wordsfromyourfather.com/
It’s a blog hosted by wordpress.com and the Theme is called Neutra.
It is possible to use the translate feature in this setting?
Thanks in advance,
Matthias
LikeLike
Hi Matthias..
as you are using wordpress.com as ur hosting..u will not be able to do it..
Om
LikeLike