Skip to content Skip to sidebar

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

Problem:
The client is experiencing an issue where the header overlaps with the content on many translated pages, and the header does not inherit the style of the original page.

Solution:
First, we recommend checking the display conditions in the Elementor Header Footer Builder. If the conditions are set for specific pages in one language, they may not apply correctly to the translated pages. To fix this:
1. Go to Appearance > Elementor Header Footer Builder and filter for the translated language.
2. Open the translated templates and locate the "Display on:" section.
3. Remove the current conditions for the Spanish versions of the WooCommerce pages.
4. Search for and add the correct translations of those pages, then save the template.

Another solution involves translating the display conditions using the WPML Translation Editor:
1. Navigate to WPML > Settings > Custom Field Translation and set

ehf_target_include_locations

and

ehf_target_exclude_locations

to "Translate".
2. Edit and save the original template, then translate it using the WPML Translation Editor.
3. In the Translation Editor, translate the post IDs to match the IDs of the translated pages.
For assistance in finding post IDs in WordPress, refer to this guide.

We are also considering implementing a WPML Hook inside the "Elementor Header & Footer Builder" for automatic display condition adjustments in each language, which may require cooperation with the plugin author.

If these solutions do not seem relevant to your situation, please open a new support ticket with us for further assistance.

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 22 replies, has 2 voices.

Last updated by Andreas W. 1 year, 7 months ago.

Assisted by: Andreas W..

Author Posts
December 1, 2023 at 5:28 am #14968719

mustafaS-13

I especially have issues with these 3 pages:

hidden link
hidden link
hidden link

All these 3 pages have the header template created with 'elementor header and footer plugin'

I've implemented your workaround but while it works for some of the translated pages of these above pages, it doesn't work for others.

To visualize the issue, visit the above link and filter by language

Thank you for the help so far

December 1, 2023 at 5:43 am #14968779

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Indeed, I understand what is causing the issue and it is truly unexpected and kind of odd that it works on some pages and others not.

For example /nl/trolley/ is using the template with ID 15112 which is the global template from Elementor Header and Footer Builder.

If you check the actual Dutch template "KOPJE ANDER" then there are not any display conditions set on the WordPress Editor.

I explained earlier what needs to be done in this case:
https://wpml.org/forums/topic/split-header-not-appearing-on-translated-wc-pages/#post-14729737

You will need to open the translation of the template inside the WPML Translation Editor to fix this.

Here the original cart page is post-12 and it needs to be translated to the Dutch cart page which is post-post-13519.

It is translated to post-13217 and this is why this does not work as expected.

Anyhow, I tried to fix this now and it still does not make the display conditions available on the translated Dutch template. It might be that those settings first need to be copied so that we can translate them after.

Take note, that this issue has already been escalated months ago and we are trying to reach the author of the plugin to achieve cooperation in solving the issue, only until now we could not obtain any feedback.

I would suggest that for now, you fix this issue manually on each template.

We hope for your understanding.

Best regards
Andreas

December 1, 2023 at 9:38 pm #14976321

mustafaS-13

With the page you referenced, you referenced the wrong translated page.

Page with id '13519' karrt is another page entirely and not related to the dutch translated page for Cart which is Trolley id 13217

Hence my point still stands of your workaround not working for all pages.

How do we fix this?

December 1, 2023 at 9:52 pm #14976331

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

I am not sure why the workaround is not working as expected in some cases, but I need to point out again, that it is the plugin author of "Elementor Header & Footer Builder" and our compatibility team is already working together with the author towards a solution.

I am not sure if you revised your site, but I adjusted all the settings manually for you yesterday on the templates by adding the cart, checkout, and account pages as the display condition in almost all languages and this works as expected.

The only exception is the Russian template, as I can not filter the pages on the template conditions in this language.

This means, as these are a few edge cases here, please use manual translation as a workaround for those templates until the author has made the plugin fully compatible.

Guide:
https://wpml.org/documentation/translating-your-contents/using-different-translation-editors-for-different-pages/

Best regards
Andreas

December 3, 2023 at 5:43 am #14979139
mustafaS-13

As soon as I sent my last message, I figured out a workaround with your help.
For the pages it wasn't working for (say Russian), the workaround is to also make sure the display settings of the translated Russian header is also pointing to the translated pages in Russian.

Another issue I'm having is several aspects on the pages not translating; as in the images attached

New threads created by Andreas W. and linked to this one are listed below:

https://wpml.org/forums/topic/split-split-various-translation-issues/

Contact.jpg
home.jpg
Tour Details 04.jpg
About Us 03.jpg
About Us 02.jpg
Tour Details 01.jpg
home02.jpg
Tours.png
About Us.jpg
December 3, 2023 at 5:47 am #14979393

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Yes, this is what I meant by translating the templates manually.

I opened all the templates in all languages and added the display conditions manually (only not Russian).

Please take kindly note that we handle only one issue per ticket and further I am not working on Sundays and Mondays.

I would kindly like to ask you to open one new ticket for any further issues and one of my colleagues will assist you as soon as possible.

Best regards
Andreas

December 4, 2023 at 11:58 am #14986307

mustafaS-13

You've been helpful so far and I want us to keep solving this together.

Once you're back on Wednesday, you can help split it into a new ticket

December 5, 2023 at 2:42 pm #14999623

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

I am glad to hear that you are satisfied with my support.

The request was split into a new ticket and I will have a look at those issues today.

Best regards
Andreas

December 6, 2023 at 8:02 am #15004239

mustafaS-13

thank you