Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 - -
- - - - - - -

Supporter timezone: Africa/Cairo (GMT+02:00)

This topic contains 26 replies, has 1 voice.

Last updated by Osama Mersal 15 hours, 45 minutes ago.

Assisted by: Osama Mersal.

Author Posts
January 10, 2026 at 11:59 am #17717979

Natalie Wood

I create a page in English, I translate to Danish, all is OK.

I update the English page to add a new element and change some styles.
I click to update the Danish translation

The text of the new element is there and I translate it

The Danish page does not show the new element. It is not there in the HTML structure

I try a few more times doing the translation (making a minor change) which doesn't resolve the issue. After two or three tries at redoing the translation the layout of the Danish page has been completely corrupted

I have had this issue a lot.

I use GeneratePress theme and GenerateBlocks Pro

I can provide a logon to dev server for you to see

January 10, 2026 at 12:16 pm #17718043

Natalie Wood

Note that I cleared all caches including WPML cache in troubleshooter

The issue seems to be the html of the translated page is different / corrupted

January 11, 2026 at 10:37 am #17718909

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

Your answer will be private, meaning only you and I can access it.

❌ Please back up your database and website ❌

✙ I need your permission to deactivate and reactivate the plugins and themes, and change site configurations. This is also why the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Best regards,
Osama

January 11, 2026 at 12:11 pm #17719034

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for the access details. I added the following XML to WPML -> Settings -> Custom XML tab.

 <gutenberg-blocks>
    <gutenberg-block type="gravityforms/form" translate="1">
      <key name="title"/>
      <key name="description"/>
    </gutenberg-block>   
    <gutenberg-block type="generateblocks/text" translate="1">
      <xpath>h1</xpath>
      <xpath>h2</xpath>
      <xpath>//a/@href</xpath>
      <xpath>//a</xpath>
      <xpath>//p</xpath>
      <xpath>//div</xpath>
      <xpath>//li</xpath>
    </gutenberg-block> 
    <gutenberg-block type="generateblocks/element" translate="1">
      <xpath>//li</xpath>
    </gutenberg-block>    
  </gutenberg-blocks>

After that, I saved the page in the default language and re-translated it. Please check if the Danish page works correctly.

Best regards,
Osama

January 11, 2026 at 1:05 pm #17719081

Natalie Wood

Thank you for fixing the page. It is correct

But now when I go into the ATE translation editor, every piece of generateblocks text is in there twice.

January 12, 2026 at 9:41 am #17720593

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for your update. Please create a new test page and translate it. Kindly let me know if you see the segments twice on the new page.

Best regards,
Osama

January 12, 2026 at 11:05 am #17720968

Natalie Wood

yes translating a new page shows all the blocks text twice

January 12, 2026 at 11:12 am #17720990

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

I removed the XML code added before. Please make a minor edit and update the page to check if the segments are duplicated.

Best regards,
Osama

January 12, 2026 at 11:20 am #17721091

Natalie Wood

Hi

Thanks

The segments are no longer duplicated

But if we don't need the extra XML what caused the corrupted HTML in the first place?

This has been happening a lot so there is something wrong

January 12, 2026 at 11:23 am #17721097

Natalie Wood

I have just noticed that my original page is corrupted again.

hidden link

I didn't do any edits just opened it since you've removed the XML

January 12, 2026 at 11:54 am #17721331

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Please check the page and let me know if it works correctly. (hidden link)

I reviewed the translated page and found that the "Slider Dots" container has a sizing attribute that was causing the issue.

Best regards,
Osama

January 12, 2026 at 12:04 pm #17721354

Natalie Wood

Thank you

can you help me understand what the issue was

The 'slider dots' container (in english page) has this css:

margin-bottom: 25px;
min-height: 50px;

Are you saying there was an issue with that css that you corrected, or that the css on the Danish page was different?

If it was different css only on Danish page - how would that happen?

January 12, 2026 at 1:28 pm #17721584

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Did you edit the Danish page using the WordPress editor before to add any content or CSS?

Best regards,
Osama

January 12, 2026 at 1:31 pm #17721589

Natalie Wood

No

January 12, 2026 at 1:35 pm #17721610

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

That's very strange because the values were different when I checked the Danish page.

After removing these attributes and retranslating the page, the values are now correct, and the page is no longer broken.

Best regards,
Osama