wpml and the retailer

Introduction

The Retailer theme comes with many theme options, pre-built layouts, demo content and other features. It is fully compatible with WooCommerce, which make it a good choice for building a clean and professional online store. Its integration with WPML allows you to translate all theme and shop elements effortlessly.

What you will need

Essential resources

Content

  • Translating the home page(shop page)
  • Translating products and product categories
  • Translating pages, posts, custom post types, and custom taxonomies
  • Translating menus
  • Translating theme text and other strings

Getting started

Follow these main steps to get started:

  • Install The Retailer theme and activate it.
  • Install and activate the core WPML plugins (WPML Multilingual CMS, WPML String Translation, WPML Translation Management, WPML Media Translation), and then other WPML plugins that may depend on them.
  • Set up WPML from WPML >> See our WPML Getting Started Guide for a complete reference. Note, however, that the initial three-step setup is self-explanatory, asking you to choose your default language, a set of active languages, and a language selector. (To begin, choose the footer language selector. You can change this later.)

For this tutorial, we use the demo content provided by The Retailer theme. You can import this content by following these steps:

  1. From your WordPress dashboard, navigate to “The Retailer.”
  2. Click on “Demo.”
  3. Click on the “Install” button.

Install demo content

Translating the home page (shop page)

The demo homepage installed by “The Retailer” theme is built using the Visual Composer (VC) page builder.

To translate the home page or any other page created with VC follow these steps:

  1. Navigate to “Pages.”
  2. Find the home page and click the icon to add the translation.

Home page transaltion-1

  1. Click on the “copy content from English” button found on the language metabox to copy your content to the secondary language home page.
  2. Click the “BACKEND EDITOR” option.
  3. Add the translated text to the page title and the different VC elements.
  4. Publish the page. (Refer to the illustration that follows.)

Home page tranaslation-2

Translating products and product categories

You can translate products and product categories using WooCommerce Multilingual. Please refer to our full tutorial on using WooCommerce Multilingual.

Translating pages, posts, custom post types, and custom taxonomies

Translating pages, posts, and the custom post types (Portfolio) can be achieved by navigating to Pages or Posts on the WordPress dashboard and clicking the  icon to add the translated content to the secondary language in the same manner we translated the home page.

To translate custom taxonomies, follow these steps:

  1. Go to WPML >> Taxonomy Translation.
  2. Select “Portfolio Categories” from the “Select the taxonomy to translate drop down” menu.
  3. Click on “translate,” complete the required fields, and click “OK” to add the custom taxonomy translation, as illustrated that follows.

portofolio category translation

Translating menus

Using WPML, you can easily synchronize menus between languages. For more information, please refer to our complete translating menus tutorial.

Translating theme text and other strings

Theme strings can be scanned and registered for translation on the string translation screen. Read more about this here: Theme and Plugin Localization.

This can be accomplished by following these steps:

  1. Go to WPML >> Click on Theme and plugin localization
  2. Click on the “Scan the theme for strings” button. This will register the theme texts for translation on the string translation screen. (Please refer to the illustration that follows.)

Scan theme for strings

  1. Next, navigate to WPML >> String translation.

Strings can be filtered by:

  • Select the strings to display (Translation complete, Translation needed, Waiting for translator).
  • Select a specific text domain.
  • Search for a specific string by typing it in the “search for” field and clicking the “search” button.
  1. Click on “translations” and add your translated text. Then choose the “Translation is complete” option and click “Save.” (Refer to the illustration that follows.)

String translation

Note that translating admin texts/theme options can be achieved by choosing the “admin_text_theme_mods_theretailer” and “getbowtied” string domains on the string translation screen.

Conclusion

The Retailer is a simple yet powerful eCommerce theme that enables you to create an attractive online store. Its integration with WPML allows you to translate all theme elements smoothly.