This thread is resolved. Here is a description of the problem and solution.
Problem:
If you're trying to translate a template and using block theme, but the translated template is not showing and being applied on the translated page check next solution.
Solution:
We have identified this as a known issue and are working on a permanent fix. Meanwhile, here's a workaround that should help:
Follow these steps:
- Remove the translated template.
- Enable Slug Translation in WPML > Settings (Page URL > Translate).
- Navigate to
wp-content/plugins/sitepress-multilingual-cms/classes/full-site-editing/BlockTemplates.php
and comment out the line:
$postData['post_name'] = $post->post_name;
- Send the template to the translation.
- Translate the template, ensuring that the slug is correct, for example, 'page-homepage'.
If this solution doesn't seem relevant to your issue, please open a new support ticket with us.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
This topic contains 14 replies, has 2 voices.
Last updated by 1 year, 7 months ago.
Assisted by: Dražen.