This thread is resolved. Here is a description of the problem and solution.
Problem: If you're experiencing issues where the design of your page breaks when switching languages using the WPML flag, it might be due to HTML markup being incorrectly translated in WPML → String Translation. Solution: We recommend checking the WPML → String Translation section for any HTML markup that has been translated. If found, remove these translated strings to see if it resolves the layout issue on your multilingual site.
Please note that this solution might be outdated or not applicable to your specific case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket.
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.
I made 2 pages and linked them. One for serbian and one for english language. They are working okay until I click the flag to change the language. When I do that, design for the english language breaks and it doesn't look good. I tried everything without the success.
First, I tried duplicate from WPML and it wasn't good. Then, I made new page, duplicated all content from serbian page and translated it by myself and it was good until I connected it to English translation.
I tried now unlinking them and it doesn't look good.
If needed, I can give you admin credentials so you can look on your own.
I suspect that a custom field may have been copied from the original language when the pages were linked and updated. If that field was set to “Copy,” it could have been transferred to the translation and potentially affected the layout.
I’ll need temporary access to your site (WP-Admin and FTP), preferably to a staging or test site where the issue can be reproduced.
When you submit your next reply, you’ll see private fields below the comment area where you can safely share the credentials. The information entered there is visible only to you and me.
I want to ask you about the possibility of replicating your site locally. I'll need to install a "Duplicator" temporarily or "All In One Migration" plugin on your site. This will allow me to create a copy of your site and your content.
I have investigated this further. It turned out that some HTML markup was translated in WPML → String Translation and was breaking your page's layout. I have removed those strings from the String Translation, and it fixed the problem.