I have created a post category tamplate and the layout looks fine in Spanish, which is the default language, but in other languages is all messed up pretty badly. I see there is a lot of extra code in the translations.
See hidden link, which is fine, and hidden link or hidden link where it is all messed up.
I would delete those pages and rebuild them but there is no way to do that right? Since they don't really exist as static page accessible with Gutenberg. The only page is the template itself, and that page is fine...
How can I fix it?
I have redone the template 10 times.
Now it's better than it was before: apparently, a shortcode inside the Archive Output was causing the problems.
But still, the layout breaks when translated: hidden link
As you can see comparing it with the correct version (hidden link), the code is not the same as the default template, the layout is missing several divs, and that is why the layout is messed up.
What I have done is just create the template, customise the layout, and then press the WPML "+" button to translate the few texts that needed translation with WPML Advanced Editor.
The french version has not been translated yet, and it looks ok: hidden link. But I have already seen that whenever I translate the page, the layout will be messed up as well.
Why is it happening? How can I fix it?
Thank you in advance
Hi there,
Would you please follow the steps below?
- IMPORTANT STEP! Create a backup of your website. Or better approach will be to test this on a copy/staging version of the website to avoid any disruption of a live website.
- Go to WordPress Dashboard > Plugins and deactivate WPML Multilingual CMS.
- Go to WordPress Dashboard > Toolset > Content Templates
- This time you will see all the translated versions. Delete them.
- Activate WPML Multilingual CMS again.
- Go to the Content Template in question.
- On the right sidebar you will see a languages section.
- There is an option to use the Native WordPress editor instead of the Advanced Translation Editor.
- Make sure you select the Native WordPress Editor: (click the link below to see the screenshot)
hidden link
- Now if you click the + icon you will be redirected to a new page which you can either copy content from the original language or recreate it for the second language.
Thanks.
Hi Christopher,
that is a good idea, I have been looking for a way to delete the archive translations and start from scratch and I could not find it.
Only thing is, it does not work. I mean that in the Content Template section the Archive templates don't show up, only in WordPress Dashboard > Toolset > WordPress Archives . And there, there is still a single one, there are no translations.
I am making these changes on a staging site at raypa.com/stage5
With the help of WPML support, we could finally managed to solve this.
The problem were the toolset blocks inside the Archive loop. We changed those for standard Gutenberg blocks and the problem disappeared.
It's a bit weird that the Toolset blocks did not work on a template built with Toolset, but the important thing was solving the problem...