Translate your WordPress website without Plugin.
Google translation HTML code.
Let your site visitors Translate your WordPress website any website into any language of their choice.
Copy below following code snippet and paste it on your desired page at the top of the page, before any of the other code.
If you place and publish the code snippet properly then the button should look like this:
- Remember, you’ve to paste the code in .html extension.
Below images is “HTML extension” sample
You can place the code snippet in any post or page you html extension
2. You can place the code snippet before the <Head> or the <Body> of the page.
Copy the code snippet 👇
<div id=”google_translate_element”></div>
<script type=”text/javascript”>// <![CDATA[
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” type=”text/javascript”></script>
Give Feedback About This Article