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.
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.
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.
The list of templates shipped with the Twenty Twenty-Two theme
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.
Editing a template
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.
Translating an edited and saved template using Translation Management
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.
Sending the Navigation Menu to translation from Translation Management
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.
Translating menu URLs in Advanced Translation Editor
Translating Other Texts from Templates
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.
Scanning a block theme for template 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.
Translating the error message from the 404 template
Manage Cookie Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.