If you want to add Google translate functionality to your wordpress site without using a plugin, here are the steps:
Note: Please note that to be able to add google translate on your site, you need to have a self-hosted wordpress installation (wordpress.org instead of wordpess.com).
Is your website address companyname.wordpress.com? Then you are using a wordpress.com installation and you can not install the widget on your site.
Go to Google translate pages and click “Add to your website now”:
Log in with your Gmail account (Create one if you don’t have it) and once you have logged in, add your website’s URL, for example: name.synology.me/wpTutorial and click “Next”:
Configure the settings:
- Choose the languages you want to have translated
- The layout of the translation bar
- and choose if you want to have the banner that normally appears when you access a site in another language, like this:
and click “Get the code”:
We are almost done, go to wordpress admin and click on “Appearance” and “Widget” and add a TEXT widget to your side bar:
Add a title, for example: Translate this page and copy the code you got from the google site:
and if you done everything correct, you will see the following on your page:
NOTE: If you want to remove you site from this Google Translate:
Simply Click on here, go to “Tools” > “Translation Memories” >> Remove your site reference…