Multilanguage
WPML plugin
Section titled “WPML plugin”WPML is a plugin that shows the same content in different languages. You do not need a separate site for each language. You run one site on one domain, and each page, post, portfolio item or product appears in the language your visitor chooses.
The shared guide Translate your site with WPML or Polylang explains how to install the plugin, add languages and translate your content. This page covers what is specific to RT-Theme 18.
Changing languages
Section titled “Changing languages”When WPML is active, RT-Theme 18 shows the language flags on your site, below the navigation. Visitors click a flag to see the page in that language, if the page exists in it.
- A page or post that has no translation in a language does not show in that language.
- The theme only shows flags for the languages you activated in WPML.
Translating pages and posts
Section titled “Translating pages and posts”Finish the page in your main language first, with its featured image, other images and attachments, and publish it. Then add the translation:
- Open the list of pages or posts.
- Click the plus icon in the column of the language you want to add. WPML opens its translation editor, or a copy of the page that you edit in the second language.
- Translate the content and publish the translated version.
- Repeat for each language.
If a page or post has no translation, it does not show in the other language. A visitor who clicks a flag on that page lands on the home page of the other language instead of a translated page.
WPML can list all posts in every language, or only the posts that have a translation. Use the setting that shows only translated posts. RT-Theme 18 does not support listing all posts. For help with WPML issues that come from the theme, create a support ticket in your dashboard.
Categories of the custom post types
Section titled “Categories of the custom post types”RT-Theme 18 has custom post types that you can group into categories, like WordPress posts: Portfolio (with Portfolio Categories), Product Showcase (with Product Categories), Team and Testimonials. To list posts by category:
- Create a post.
- Create a category.
- Assign the category to the post.
- Publish the post.
A category page lists all posts in that category, in the sort order you set. You can add categories to a menu as menu items, so a click on one shows its list of posts. When you translate the categories and the posts, each translated category page lists the posts of that language.
Create the categories and their translations for each language first. When you then translate a post, WPML already knows the translated category and assigns it to the translated post.
String translation
Section titled “String translation”WPML includes String Translation. RT-Theme 18 supports string translation for the text fields it uses throughout the theme, including the Template Builder. Once WPML detects such a string, you translate it in WPML › String Translation. So you do not need to duplicate those fields: you translate them in one place instead.
Only the strings the theme registers appear in String Translation. They include:
- The copyright text
- The slogan
- The social media texts
- The breadcrumb text
- And more
Not every text you see on your site shows up in String Translation. Strings that the theme does not register need a translation of the theme files instead. See Translating theme strings.
Different widgets per language
Section titled “Different widgets per language”For widgets that string translation does not cover, WPML recommends plugins such as Widget Logic or Dynamic Widgets. They show a widget in a widget area only for a given language. The WPML documentation explains how: translating widgets.
Support for WPML
Section titled “Support for WPML”We do not provide support for how the WPML plugin works. WPML has its own support forum and documentation, where you can get help. We fix problems in our own theme code, and the WPML documentation covers the common questions about using WPML with a theme.
Polylang plugin
Section titled “Polylang plugin”Polylang is a free alternative to WPML. When you install it, the language switcher appears in the header, as with WPML. Read the Polylang documentation for the details, and the shared guide Translate your site with WPML or Polylang for the steps.
Get all RT-Themes designs, updates and support with a single Club license.
Join the Club