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

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

  2. The Problem here is: The german and english pages a using different templates. If I wanna select a other template for the translated page, different templates are visble in oppoite to the german original. Its not possible to find a solution. We lost so much time and money to solf this problem and nothing helps!

    For this solution here:
    To delete a template from the database – > Do I need to delete with phpmyadmin/MYSQL and where in the datanase is it stored???
    Is it possible to delete the tempkate in the admin backend in wordpress???

    At last: you write to send a template to a page. What does it mean? To select another template for the page in the pageeditor???

    Sad to see, that a chargeable plugin needs so much work and time!!!

    • Hello Dorothee,

      Thank you for your comment, and I’m sorry for the trouble you’re experiencing.

      1. If you’re not comfortable using phpMyAdmin, you can delete the template from the backend: Switch to 2nd language from the top bar and go to Appearance > Editor to find your translated template and delete it

      2. “Send the template to the translation”. You can do this via WPML > Translation Management. Select the template and send it to translation.

      3. I saw that you left several comments, I’ll review them all and do my best to provide answers. If the steps in this erratum aren’t clear, or please open a support ticket so we can assist you directly.

  3. And another thing: I dont wanna delete my templates. I need controll about for pages/posts, what template should be use!

    • Hi,

      Just to clarify, you don’t want to delete your templates in the primary language. You want/need to delete the template in the secondary language. You can do it from the WordPress dashboard, without touching the database. Don’t hesitate to open a ticket if you need further assistance. Our supporters will be happy to help!

  4. We use the twentytwentyfour theme, we cant see a possibility to delete templates! This is the satndatr template for wordpress, we use it because all plugin are most compatible… what about wpml?

  5. We swiched of all plugins (only wpml is acktive) an wordpress and the plugin are in the newest version! Same problem is going on!

    • Hi,

      This errata is still open, which means that the issue is not resolved yet. You will have to follow the steps described above in the workaround section.

  6. in your “forum” i find people with the same problem, but nowhere is a solution for the problems snd the tickets are closed, its not anymore possible to answer…

    • Hi,

      Could you please open a new ticket? Our support team will be happy to assist you personally and help resolve the issue.

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>