|
/ Documentation /Spectra One/ How to Use WPML for Translating Spectra One Websites

How to Use WPML for Translating Spectra One Websites

Spectra One simplifies website translation using multilingual plugins such as WPML. Our theme is fully compatible with WPML and other translation plugins and tools. 

You can translate multiple components like templates, template parts, menus, and more within your block-based theme.

This article will guide you through translating different parts of your block-themed website using WPML.

Let’s begin!

Note: Before proceeding, ensure you have the WPML plugin installed, activated, and configured on your WordPress dashboard.

Translate Templates In Spectra One Using WPML

Templates let you edit, create, and manage the layout and design that pages or posts use. Using WPML, you can translate templates such as – home, index, search, 404, archive, and more.

Here’s how you can do it:

  • Navigate to Appearance > Editor from your WordPress dashboard. 
  • Access the Templates section and choose the template that you want to translate. In this example, we’ll go with the “Search Results” template.
  • Make any minor change to this template content and then click on the Save button. This step is necessary for WPML to recognize these templates for translation.
  • Go back to your WordPress dashboard and navigate to WPML > Translation Management.
  • Filter the items by the type Templates and tick the checkbox before your desired template.
  • Select how you want to translate this template content and click the Start translating button.

Your template should now be translated into your preferred language. For example, here’s our “Search Results” template:

Translating Template Parts In Spectra One Using WPML

Translating template parts using WPML follows a process similar to translating templates. Here’s how you can do it:

  • Navigate to Appearance > Editor > Patterns, and then Template Parts.

Similarly, make any change to your preferred template part and save it so that WPML recognizes it. 

Follow the steps shown in the previous section to translate template parts, such as the Header, Footer, or General.

We have translated the header contents in this article:

Translating Strings In Spectra One Using WPML

These are the short text pieces from your website’s buttons, site taglines, and error messages.

You need to install WPML’s String Translation to translate these texts. Once installed, follow these steps:

  • Navigate to WPML > Theme and plugins localization and scan your theme for strings.
  • After scanning your theme, go to WPML > String Translation and search for the text you want to translate. Then, click the plus sign to add your translations.

The string translation will be saved automatically after adding it.

That’s it! Follow these steps to translate more of your website content within your block editor. 

For further assistance, feel free to contact us. We’re always happy to help!

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

On this page

Get Notified When Available

Note - You can purchase the Essential Toolkit now and easily upgrade to the Business Toolkit once it becomes available.

Download is Just A Click Away!

Enter your email address and be the first to learn about updates and new features.

Get your hands on Spectra Pro

Enter your name and email address to get access to Spectra Pro.