One Page Express gives you the possibility to translate your website into different languages. The theme is compatible with 2 of the most popular multilanguage plugins: Polylang and WPML.
Translate your website with WPML
Install WPML
After you have purchased WPML, go to Plugins, in the left-hand menu of the WordPress Admin dashboard.
Click on Add New -> Upload Plugin. Click on Install Now. Activate the plugin.
Then, check in the list of Installed Plugins, to see if the WPML plugin was installed and activated correctly.
Configure the plugin
In the left-hand menu of the WordPress Admin dashboard, go to WPML, and start configuring the plugin.
- Select the current content language:
Click Next.
- Choose the translation languages:
Click Next.
- Configure a language switcher you’ll place in the menu/widget area/footer.
Click Next.
- Select your preferences related to compatibility reporting.
Click Next.
- Enter the site key, to receive automatic updates for WPML on the site.
Click Finish.
Advanced settings for the WPML plugin
- Report to wpml.org – you can activate the option to report to wpml.org which theme and plugins you are using, to ensure maximum compatibility of the plugin with your site.
- Site languages – from here, you can check which languages are activated for the website. moreover, you can change the default language, or you can modify the list of languages, by adding/removing languages from the list.
- Language URL format – from here, you determine which URL format you give to translated pages: it might be a different domain for each language/it might be the language name added as a parameter (?lang=fr – French)/it might be a directory for each language (fr/ – French)
- Language switcher options – you’ll decide the order of the languages in the language switcher, and set to skip language/link to home of language for missing translations.
- Footer language switcher – check the checkbox if you want to show language switcher in footer
- Links to translation of posts – check the checkbox if you want to show links above or below the posts, providing their version in other languages
- Custom language switchers – enable the option to insert WPML switchers in custom locations.
- Hide languages – this option is particularly useful when you have some translations in progress (you’ll want to hide content in a certain language, as far as the respective translation is in progress and has not been finished yet).
- Browser language redirect – you can choose to disable browser language redirect/redirect visitors to the appropriate content translation based on browser language only in case that translation exists/always redirect visitors to the appropriate content translation based on browser language – and redirect to the homepage if the respective translations are missing.
Translate pages/posts into target languages
To translate a page
In the WordPress Admin dashboard, go to Pages in the left-hand menu to open the table of existing pages.
Next to each page, you’ll have columns for the different target languages you’ve previously added for the site.
Next to the selected page, click on the + icon corresponding to the target language you want the page translated into.
Add a title to the translated page, and click to Copy content from default language (in the lower part of the right-hand menu):
Click Publish.
Then, you’ll have a distinct table of pages containing all pages that have been translated in the target language.
To translate a post
The same as for pages goes for posts.
Go to Posts -> All Posts, in the left-hand menu of the WordPress Admin dashboard.
Click on the + icon next to the post you want to translate, the icon that corresponds to the target language you want the post translated into.
You’ll be taken to the page version corresponding to the translated content. Give this page a name and click on Copy content from the default language:
Click Publish.
Then go to the list of posts. You’ll see you have a distinct list of posts for the target language: