Open
Reported for: WPML Multilingual CMS 4.6.9
Overview of the issue
You may encounter issues with block theme templates, specifically translated template may not be applied to the translated page.
Workaround
- Remove the translated template from the database (wp_posts and icl_translations) OR
- Switch to 2nd language from the top bar and go to Appearance > Editor to find your translated template and delete it
- Enable Slug Translation in WPML > Settings Page URL > Translate (this will include the slug in the translation and not create it automatically from the title)
- Go to: wp-content/plugins/sitepress-multilingual-cms/classes/full-site-editing/BlockTemplates.php and around line 56 comment-out:
$postData['post_name'] = $post->post_name;
- Send the template to the translation
- Translate the template while making sure that the slug is the correct one and includes the translated page/taxonomy slug
Hello
How is it possible that wpml is not compatible with the theme éditor?
I find it hard to believe. Do you confirm?
Hello there,
WPML is compatible with the theme editor. However, there could be some scenarios where you can find the issue reported here.
For those cases, please follow the workaround provided.
We will keep this page updated.