Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client was experiencing an issue with double titles appearing in the translations of their website.

Solution:
We noticed that the double title issue was not present in the site's default language due to a CSS attribute that was hiding it. We recommended the client to apply the same CSS attribute to hide the double title in the translated versions of the site. We also provided a guide on how to use language selectors in CSS for further assistance. Here is the guide on language selectors: https://www.w3schools.com/cssref/sel_lang.php.

Please note that this solution might be irrelevant if it's outdated or not applicable to your case. If the issue persists, 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 you still need assistance, please don't hesitate to 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.

This topic contains 6 replies, has 2 voices.

Last updated by Osama Mersal 1 year, 4 months ago.

Assisted by: Osama Mersal.

Author Posts
February 11, 2024 at 12:44 pm #15289572

majaR

Hello,

Can you please let us know, how to remove the double titles in translations?

There is also an error (not sure if the error is related to the double titles, or is ti another thing?)

See attached:
- Example in Spanish (the original which is correct)
(Here the link: hidden link)
- Translation - where for some reason we have two titiles
(Here also the link: hidden link)
- Screen of the Configuration in WordPress

Thanks a lot in advance for your help

capture3.JPG
capture1.JPG
Capture.JPG
February 12, 2024 at 9:42 am #15291794

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

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

Please let me know how these titles are added in the default language. Also, please check if this issue happens to all products or specific products.

Best regards,
Osama

February 12, 2024 at 9:50 am #15291915

majaR

Hello Osama,

Thanks a lot for your quick reply.

Yes it is happening with all the products.

For those two additional fields recetas= recipies and beneficios = benefits we are using a plugin to add extra tabs in wocommerce

As per image attached, in the original language we just add the tab title, which is recetas and then bellow in the description we use another H2 (title) for a title that we want, for example: Ideas de degustacion...

Neverthless when this gets translated. It seems that the tab title get's translated correctly but for some reason it appears twice, as title on the tab + title in the description.

Thanks for your support

Capture.JPG
February 12, 2024 at 9:56 am #15291961

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

Thanks for your update. 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 backup your database and website ❌

✙ I would need your permission to de-activate and re-activate the Plugins and the Theme and change configurations on the site. This is also a reason 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

February 12, 2024 at 11:07 am #15292390

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi Maja,

It could be a compatibility issue, so please login to this sandbox site and install the Products Tabs plugin. (hidden link)

After that, please create a test product and translate it to replicate the issue. If the issue is replicable, please let me know how to reproduce it to consult our compatibility team.

Best regards,
Osama

February 12, 2024 at 11:30 am #15292667

majaR

Hello, done.

In sandbox site seems that even in original language there is double title for some reason (see the pw)

hidden link

thanks a lot

Capture.JPG
February 12, 2024 at 11:46 am #15292903

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi Maja,

Thanks for replicating the issue. The string doesn't appear on your site's default language because there is a CSS attribute to hide it. (Kindly check the attached screenshot)

Please add the same CSS attribute if you want to hide it from the translated language. Kindly check this guide to know more about language selectors in CSS. (hidden link)

Best regards,
Osama

2024-02-12_13-42-45.jpg
February 12, 2024 at 11:58 am #15292963

majaR

Hi, thanks for this. It wasn't done by me the CSS, but will try to figure out how to replicate it.

Thanks for so quick replies and figuring out the issue