Swimminginthought

A place for all things technical and my mind..

Menu
  • About Me / Hire Me
Menu

How to Make Your WordPress Blog Available in 43 Languages [Solved]

Posted on May 23, 2012 by Percy Kwong

Some of you may have noticed that recently, this blog has a translate option to other languages.  It’s really quite simple.  Here’s how to do it.

Your WordPress Blog should have a text widget.

Simply, insert the following code into it and put the widget in your sidebar.

<div id="google_translate_element"></div><script>
function googleTranslateElementInit() {
  new google.translate.TranslateElement({
    pageLanguage: 'en',
    layout: google.translate.TranslateElement.InlineLayout.SIMPLE
  }, 'google_translate_element');
}
</script><script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • Kubernetes install gotcha on CentOS-7.x
  • Infrastructure as Code using AWS Cloudformation
  • Does SSL matter? It does and it’s not just web encryption.
  • Apache can’t serve the .well-known directory
  • Cloudy with a chance of Meatballs
  • Resurrection of the Blog
  • Encryption type Matters with Deep Packet Inspection – solved
  • Completely off topic.. Just a personal note.
©2025 Swimminginthought | Built using WordPress and Responsive Blogily theme by Superb