Skip to content
RT-Theme 18 WordPress Theme

Multilanguage

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.

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.

Finish the page in your main language first, with its featured image, other images and attachments, and publish it. Then add the translation:

  1. Open the list of pages or posts.
  2. 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.
  3. Translate the content and publish the translated version.
  4. Repeat for each language.

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:

  1. Create a post.
  2. Create a category.
  3. Assign the category to the post.
  4. 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.

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

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.

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 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.