Implement google translate on website. Try it Yourself » Google Translate Button. Step 2: Add Google Translate API reference. If you want to add Google Translate to your website, there are two popular approaches: Dynamic Google Translate widget. Learn how to add a Google Translate button on your web page. function googleTranslateElementInit() {. new google. Example. In the code below a “div” element with the id “google_translate_element” is created. translate. Start with a simple basic web page. TranslateElement({pageLanguage: 'en', layout: Learn how to easily add Google Translate to a website using the free TranslatePress multilingual plugin, or how to instantly translate any website on the int Step by step guide on how to add Google Translate in WordPress to break the language barrier for your users by allowing them to translate your WordPress. . Using Google Translate to generate static translations. <!DOCTYPE html> <html> <body> <h1> My Web Page </h1> <div id="google_translate_element"></div> </body> <html> Learn how make your website accessible to more people around the world by adding the Google Translate extension. If you want to add Google Translate to your website, there are two popular approaches: Dynamic Google Translate widget. Following are the steps to add a Google Translate button on your website which are as follows: Step 1: Start with a basic web page and add a “div” element. The approach that you choose will have a huge effect on how effective your multilingual efforts are. Add a <div> element with the id "google_translate_element": Example. jyjptbshccsruqbmxvzomuqnaxbnufphrauvojmibxgoj