WordPress recently introduced the concept of Site Editing (formerly known as Full Site Editing or FSE). With the Site Editor, you can build every part of your site using blocks when you use a compatible block theme.
On This Page:
- Translating the Site Editor Content
- Translating the Site Editor Templates
- Translating Other Texts from Templates
The Site Editor (also known as Site Editing) is WordPress’s long-term vision for building sites, expanding the block editor to eventually be able to build headers, footers, widgets, templates, and more.
Because WPML has already been compatible with the Gutenberg block editor since it was first introduced, you can count on WPML to be fully compatible with the Site Editor.
Read more about translating content created using the Gutenberg Editor.
WordPress 5.9 introduced templates to the Site Editor. These templates come from one of the compatible block themes. You can access your site’s templates by going to Appearance → Editor and clicking the WordPress logo in the upper left corner.
Before you can translate a Site Editor template, you first need to save it.
This requires you to edit the template by making a small change to it or by customizing it. Alternatively, you can create new templates.
It’s important to note that any changes you make to a template apply to any page or post assigned to it.
Once you edit a template and save it, those changes are saved to your site’s database. This means that you can translate the edited templates by going to WPML → Translation Management. Choose the Template post type from the dropdown menu, and select the templates you would like to translate. Then, choose how you want to translate it.
Just like with any other post type, you can choose to translate it automatically, translate it yourself, assign it to a translator, or send it to a professional translation service.
You can also follow the steps above to translate Template Parts, such as the Header or Footer.
With the Site Editor, you can add a menu into any template using the Navigation block. However, when you send your template (or template parts) for translation, it does not include the items from your menu.
You need to send the Navigation block to translation separately. This allows you to “translate” the menu links, ensuring they point to the translations of your posts, pages, and other menu items.
To do this:
- Go to WPML → Translation Management and use the Type dropdown menu to choose Navigation Menu.
- Select the Navigation Menu you would like to translate and choose how to translate it. Depending on how many translators you have on your site, you can choose between assigning the translations to a translator or translating by yourself.
- From WPML → Translations, click the Translate button next to the Navigation Menu you want to translate.
- This takes you to the Advanced Translation Editor. In the upper left corner, search by “https” to find all the links menu items. Then, input the corresponding URL of your secondary language posts or pages as the translation.
Using WPML’s String Translation, you can translate some additional texts coming from the theme templates. This includes texts like:
- The site’s tagline
- Texts for the call to action buttons
- Error codes or messages
To start, register the strings for translation. You can do this by going 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.