Many website visitors face the problem of language barrier. If a visitor who doesn’t knows the language of your website/blog, then that visitor will close the website immediately. Therefore a solution to this problem is to provide a translate tool to the visitors of your website so that they can select the language of their choice from the drop-down box and read the website in their own native language. Fortunately, this can be easily done without the help of any plugin.
How to Add Language Translator to WordPress
If you are using WordPress, then adding the Website translator (powered by Google Translate) to your blog is a piece of cake and anyone can do it.
Head over to Google Translate’s website Translator tool. Enter the full URL of your website and select the original language of your website. Once done, click on Next.
From the next page, you can select languages that you want your website translated to. If you want your website to be translated to all languages, then select “All languages” and if you want to your website to translate to only selected (or specific) languages, then select those languages from here.
Select the display mode from vertical, horizontal or dropdown only options. The default dropdown option works very well for majority of websites but you can also select one based on your website’s design. Select other advanced options as per your needs and click on “Get Code” button.
Now that everything’s ready, you will get the code that you need to paste on your website. As instructed, paste the first code before the closing of the head tag. You can find this head tag mostly in the header.php file.
Paste the code from the second box in a text widget. This can be done by navigating to Appearance > Widgets and drag and drop the Text widget to your Sidebar or other preferred area.
That’s it. Now you can checkout the front-end of your website and you can see the translator tool in the widgetized area where you inserted the text widget. In my case, I inserted the text widget in my sidebar.
There are also plugins available for this purpose, but if you can do this without plugin, then why not. Go ahead, implement this method and add a multi-language translator to your WordPress the easiest possible way ever.
Hello, thank you for your help
I followed all the procedure but did not work
InStyle’m using elegantthemes know how I can get it to work?
my website is http://www.viajesvivecolombia.com
thanks
Already been solved, I had to insert the codes in ePanel
InStyle, integration section
regards
Hi Lester,
Good to know that your problem is solved. It really depends on where you want to show the Translate widget. In my opinion, the sidebar is a good choice to display the translate tool.
It doesn’t work for me, when I try to insert to sidebar text widget. When I click save, it deletes the script part of the code automatically.
Hi,
It’s very unusual behavior. Is your blog hosted on WordPress.com, or you’re using WordPress Multisite by any chance?
Hey!
I have the same problem that H-dee has had.
How can I fix this?
I got the code from google, pasted it into my text widget and it just deletes a part if I try to save it.
greets!
Maya
Are you on WordPress.com or using Multisite? Try reverting back to default theme and then do it.
cool. it works for me. thanks!
thanls a lot i implemented your idea in my blog.
you know if this widget is good for positionated a blog?
it doesn’t work can you help me with this?