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.
Tagged: ATE
This topic contains 10 replies, has 4 voices.
Last updated by Alejandro 8 months, 2 weeks ago.
Assisted by: Nigel.
Author | Posts |
---|---|
April 28, 2024 at 9:53 am #15573614 | |
bettinaF-3 |
On my freshly automatically translated Site hidden link you can see that around the "Discover" Element WPML added line breaks: <p style="text-align: left;"><span class="hivebuy-headline-cta"><br> breaking the layout. Without those line breaks it would work great, despite the wird custom Compare the original site hivebuy.com and the attached images for what I mean. Is there any way to prevent WPML from doing this? |
April 28, 2024 at 7:58 pm #15574292 | |
Kor WPML Supporter since 08/2022
Languages: English (English ) Timezone: Asia/Singapore (GMT+08:00) |
Hello, Thank you for reaching out to WPML support. While you wait for assistance from one of my colleagues, let me provide you with some initial debugging steps to help resolve the issue promptly. I've inspected your website and identified that the issue specifically affects the "hivebuy-headline-cta" class. To rectify this, we can utilize custom CSS code. Please follow these steps to implement the fix: 1. Navigate to WP > Appearance > Customize > Additional CSS. 2. Insert the following custom CSS code: span.hivebuy-headline-cta > br { display: none; } This code will address the issue by hiding the line breaks within the "hivebuy-headline-cta" class. I hope this helps resolve the issue. Let me know if you need further assistance. DISCLAIMER: Please know that any snippet or code suggested here is for educational purposes only. they are not meant to be the final solution but instead meant to point you in the right direction and are out of the scope of our support so we can't nor will modify, improve, debug or maintain it. |
May 2, 2024 at 8:37 am #15586174 | |
bettinaF-3 |
Hey Kor, thank you for the quick answer and hotfix, it works for now. Any updates on a real resolution for this, where I can either delete the <br>s from the translation or avoid them being created in the first place? Best, |
May 2, 2024 at 11:10 am #15586762 | |
Nigel WPML Supporter since 02/2016 Timezone: Europe/Madrid (GMT+02:00) |
Hi Holger Looking at the source of the page, it seems this content comes from a Divi Text module. I can see an earlier report about the same issue, which seems to depend on the particular structure of the content being translated. Could you share a screenshot where you are editing this module in the original German so that I can see exactly what the content is, and then I can confirm if it is the same issue as reported. Thank you. |
May 7, 2024 at 2:33 pm #15602703 | |
bettinaF-3 |
sure here you go - it is a bit of a hack, but it would be nice to get it to work the way it is 🙂 Best, |
May 8, 2024 at 7:56 am #15604658 | |
Nigel WPML Supporter since 02/2016 Timezone: Europe/Madrid (GMT+02:00) |
OK, so it does appear to be a variant of the same problem. Based on the suggested solution for the few other clients affected by this I have made a change to the settings for your account in the translation editor which should fix the problem of br tags being inserted unnecessarily. Could you please re-send the problem page for automatic translation and check the results? (You will no longer need the CSS workaround.) Let me know how it goes, thank you. |
May 8, 2024 at 9:50 am #15605263 | |
bettinaF-3 |
Hey Nigel, thanks - this didn't work, but now instead of adding <br/> it adds actual line breaks in the document. Without the hotfix, the box still shows up as broken. See screenshots for what's happening. Any further ideas? 🙂 |
May 8, 2024 at 11:04 am #15605634 | |
Nigel WPML Supporter since 02/2016 Timezone: Europe/Madrid (GMT+02:00) |
Can you check the status of that translation from your site back end? From my side it looks like the home page was sent for translation April 29 and is stuck with an incomplete status of "translating". In which case you won't be seeing the results of the changes we made. If you check the status in Translation Management and confirm the same we can delete the translation job and send it again. |
May 8, 2024 at 11:15 am #15605684 | |
bettinaF-3 |
I tried it on this one: hidden link |
May 8, 2024 at 11:51 am #15605780 | |
Nigel WPML Supporter since 02/2016 Timezone: Europe/Madrid (GMT+02:00) |
OK, that explains why. Well, I confirm the problem, and I confirm the workaround isn't working in this case. I have shared all of the details with my colleagues and bumped the internal ticket so that it gets more attention. I'll report back when I have some news from them. |
August 19, 2024 at 11:30 am #16083215 | |
Alejandro WPML Supporter since 02/2018
Languages: English (English ) Spanish (Español ) Italian (Italiano ) Timezone: Europe/Rome (GMT+02:00) |
Hello! I wanted to let you know that this issue should be fixed now. you can go to WPML > Translation management and then send the page to translate again. It should appear correctly in the editor this time. Regards. |