by Yana » Tue Jan 22, 2019 2:31 pm
Hi,
If you are using free version you can call doGTranslate('en|es') (here the main language is English, and language to show is Spanish) JavaScript function on page load and change the language. It will require development skills.
In free plan, in order to have a translated version of the website as the page is loaded (without selecting a language), you can use the following script. In this example it will be Spanish.
Put this in footer.php file of your theme, before the closing </body> tag in your footer. If you have don't have a CMS, or can't find the footer file, please find a section of pure html, and put it there, so you don't have to think about php syntax. Please use FTP for modifying the footer.php, or other files of the website, and create a backup beforehand, just for your safety:
<script type="text/javascript">
if(localStorage.getItem("ChangeLanguageFirstTime") === null) {
doGTranslate('en|es');
localStorage.setItem("ChangeLanguageFirstTime", true);
}
</script>