Skip Navigation

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 5 replies, has 2 voices.

Last updated by Mihai Apetrei 3 months, 1 week ago.

Assigned support staff: Mihai Apetrei.

Author Posts
October 9, 2020 at 3:18 pm #7200067

antoninR-2

Hi,

How can I keep the same layout (template, font-style, size...) when I switch from FR to EN without having to modify the EN page directly?
Here on exemple of the problem when you switch from FR to EN : hidden link

Thanks,

October 12, 2020 at 4:47 pm #7213915

Mihai Apetrei
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+02:00)

Hi there.

I can definitely see the issue.

Now, regarding your request, sometimes, with content builders, there can appear issues like this for multiple reasons (sometimes some of the modules from the visual builder that are used are not compatible with WPML yet, some updated that have been recently launched with that page builder are not still 100% compatible with WPML, etc.).

In that situation, here are the steps that should make things work as expected:

1. Create a full backup of the site
2. Delete the current translation by switching the flag at the top, go to pages, click "delete" on the page translation, then go to trash and remove it from there, too
3. Switch the language back to the original/default language, from the top of the backend
4. Go to WPML > Translation Management
5. Select the page that you want to duplicate, select the language that you want to duplicate the page in and click duplicate
6. Now switch the language at the top of the backend, go to Pages and click "Edit" on the newly duplicated page (it should open it in the same editor that you created the initial page in, so it should take the layout and instead of using any of the WPML editors, you can manually translate by using the initial editor that you used for the initial default-language page)

Related documentation:
https://wpml.org/documentation/translating-your-contents/displaying-untranslated-content-on-pages-in-secondary-languages/using-content-duplication/

Situations like this are a bit tricky as depending on multiple things that are/or are not compatible, you can end up in situations like this where the best solution is to Duplicate a translation and manually translate the text afterward.

Sometimes, there are also custom fields that come with a theme or with the content builder that was used to build up the pages and due to the fact that the custom fields are not set to "copy", the correct layout is not carried over to the secondary language.

Here is a bit of documentation for that procedure, too:
https://wpml.org/documentation/getting-started-guide/translating-custom-fields/

I hope that the information above will help you accomplish what you want.

Kind regards,
Mihai Apetrei

October 14, 2020 at 12:30 pm #7227653

antoninR-2

Hi,

I did it and that works but however that means I lost all my traductions. How I can export first the traduction, do the modification and then import?

October 14, 2020 at 3:14 pm #7228879

Mihai Apetrei
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+02:00)

Hi there.

I'm very happy to hear that this works.

Regarding the translation, when you are using that method, you are overwriting all the existing translated content, that's why I recommended you to create a full website backup first, in case you still need to restore to an older version.

My recommendation is to either to move the translated content into a document first or to create a duplicate of the current page with a plugin like this (https://wordpress.org/plugins/duplicate-post/) and then copy the content from that duplication into the original translation.

Please let me know how that goes.

Kind regards,
Mihai

October 14, 2020 at 4:00 pm #7229231

antoninR-2

Well I cannot do it just by duplicating the page as I have more 100 products... Is there anyway to export the translation (maybe directly through the FTP) and then import then after doing the modifications?

October 15, 2020 at 10:58 pm #7240373

Mihai Apetrei
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+02:00)

Hi there.

There is definitely possible to export the product translations and the following tutorials will explain to you in detail how to perform this procedure:
https://wpml.org/2016/08/export-multilingual-websites-using-wp-all-export-and-wpml/
https://wpml.org/documentation/related-projects/wpml-all-import-plugin-website-import-with-wpml/

Kind regards,
Mihai