Home›Support›English Support›[Resolved] Split: When I switch from Dutch to English the whole page layout changes
[Resolved] Split: When I switch from Dutch to English the whole page layout changes
This thread is resolved. Here is a description of the problem and solution.
Problem: The client was experiencing layout changes when switching languages on their website, specifically from Dutch to English on a particular page.
Solution: We reviewed the page in the Translation Editor and confirmed that the translations were correct. The issue was identified as being caused by HTML output, particularly the use of
<br>
tags that were breaking the layout. We advised the client to open the page with the layout issue directly and switch to the "Text" mode in the affected section to remove all unnecessary HTML formatting. We also provided links to documentation on HTML markers to assist the client in making these changes without breaking the HTML structure.
Please note that this solution might be irrelevant if it's outdated or not applicable to your case. If you're still experiencing issues, we highly recommend checking the related 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 with us.
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.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: Europe/Madrid (GMT+02:00)
Hi Ronald,
the only changes I can see in the layout are inside the content (in the block "On this site, some of it still ‘under construction’...). Can you please confirm that you mean the content part, not the design itself?
I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to a testing site where the issue is replicated.
You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.
Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.
IMPORTANT
-Please make a backup of site files and database before providing us access.
-If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this: hidden link
i also see this on other pages where a normal textline (in the original Dutch site) is divided over several lines after translation to English (by WPML).
MEMORY,
in the picture underneath you see an issue i noticed on my (WPML) support page.
Maybe this is a cause?
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: Europe/Madrid (GMT+02:00)
Hi Ronald,
Yes, a low memory limit could indeed block the correct updating of a page.
Could you please increase first your WP Memory limit? To do so, add this code to your wp-config.php file to increase the WP memory:
define('WP_MEMORY_LIMIT', '256M');
Please paste it just before the line "That's all, stop editing! Happy blogging."
For more information, see here: https://wpml.org/home/minimum-requirements/
Note: WPML requires a minimum WP Memory limit of 128M to function in a minimal environment, which means it operates with a default theme and no other plugins installed.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: Europe/Madrid (GMT+02:00)
Hi Ronald,
I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to a testing site where the issue is replicated.
You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.
Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.
IMPORTANT
-Please make a backup of site files and database before providing us access.
-If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this: hidden link
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: Europe/Madrid (GMT+02:00)
Hi Ronald,
I checked the page in the Translation Editor on hidden link and it's all correctly translated.
hidden link hidden link
The line breaks (like at "some books about hiking") that are breaking the layouts are caused by the HTML output. Same at links like "Scotland May 2023". The Source code loads a "br" HTML Tag before the list:
As best, you open hidden link directly and switch to "Text" in the affected section, where you can remove all the loaded HTML. Currently, it loads all of that "unneeded" formatting: https://pastebin.com/jrp48g5h