You are here: Computer Video TutorialWordpress TutorialGoogle Translate WordPress — Translator Widget
Due to regular updates on WP, if you look for Twenty Eleven theme modification or customization tutorial, first of all, first check this post. Thanks.

Google Translate WordPress — Translator Widget

by Kimi on November 14, 2010

Using Google Translate WordPress with simple Translator Widget Code Tutorial.

Some days ago, i have wrote about using multilingual wordpress plugin, including the alternative ways that you can achieve to have your blog or website to be accessable by different people with their own different native languages.

blog seo

In this post, i want to point out more about Google Translate WordPress without using any plugins.

Google Translate WordPress Demo.

In my sidebar, below the “today’s date” i have a widget that shows my visitors they can change the language of this page, that’s my Google Translate WordPress widget.

See image (if i don’t remove it).

google translate wordpress

My Google Translate WordPress look.

How to add this Google Translate WordPress widget to wordpress blog?

It is very easy, this is why i don’t make any video tutorials on this :)

Steps:

1. Add this line of code in Text widget (see more infos in my post about how to use widgets in wordpress 3.0.1 tutorial :)

<script type="text/javascript" src="http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/translatemypage.xml&amp;up_source_language=en&amp;w=160&amp;h=60&amp;title=&amp;border=&amp;output=js"></script>

Don’t forget to click “save button”.

2. Refresh your blog, you should see, Google Translate WordPress widget in your sidebar, with the text “gadgets powered by Google”. (see image below).

google translate wordpress

There is text, gadgets powered by Google.

blog seo

Notice i have this text gone in my widget. If you want to have the text, then this tutorial is done for you.

But if you want to hide the text, because for my blog, the text was long for my sidebar, so i did hide it with css.

If you need to hide it, use this code to paste in the bottom of your stylesheet file (style.css):

.gadget tr td img, span.powered{display:none;}

Downside using this code is another javascript is involved in your site, means when you measure the loading speed of your blog with pagespeed firefox addon, it will show that we should combine javascripts.

The advantage, we are successfully reducing plugins usages with this Google Translate WordPress widget code.

Subscribe new tips via Email:

Was the post helpful? Share it to help others with:

{ 6 comments… read them below or add one }

Rahul @ MazaKaro November 14, 2010 at 3:53 pm

Thanks again, Kimi! you always make things easy for us that no question left. Just one thing I’ll say, I must follow it.

Cheers.

Reply

Walter November 20, 2010 at 9:17 am

This is very cool Kimi. Thanks for sharing useful feature. :-)

Reply

Kimi November 22, 2010 at 4:18 pm

Thanks for the comment, Walter :)

Reply

Praveen Kumar July 29, 2011 at 11:08 am

thanks for sharing

Reply

Sandra August 29, 2011 at 10:37 pm

When i installed google translate it deleted my website and now i cant open it!!!!! plz help

Reply

Ivan Stefanov June 22, 2012 at 11:37 pm

I just found one of the best plugins ever. You can get text translator for your wordpress site. Its good Google Translate alternative.
http://www.translatorbox.com/google-text-translator-alternative-for-wordpress/

Reply

Leave a Comment

Please use a name instead of blog name or SEO stuff, otherwise it will be deleted right away.

About checkbox → See more my post:how to get rid of spam bots in wordpress post.

Thank you for visiting, you're always welcomed to be here again!

{ 1 trackback }

Previous post:

Next post: