Skip Navigation

Open

Reported for: WPML Multilingual CMS 4.6.9

Topic Tags: Bug

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

2 Responses to “[FSE | Full Site Editing] - template is not applied to translated page”

  1. 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.

Leave a Reply

Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>