Skip Navigation

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

Problem:
The site is using ElementsKit for Elementor which allows you to create Header and Footer templates.

On the translated content, not any Header or Footer is showing up.

Solution:
Go to WPML > Settings > Custom Field Translation and make sure that the following fields are set to "Copy":

elementskit_template_activation
elementskit_template_condition_a
elementskit_template_condition_singular
elementskit_template_type

Then, make sure that ElementsKit's Templates are translated and have properly set the Type as "Active" and matching display condition in each language.

Relevant Documentations:
https://wpml.org/documentation/getting-started-guide/translating-custom-fields/
https://wpml.org/documentation/getting-started-guide/translating-custom-posts/

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

Last updated by mustafaS-13 1 year, 5 months ago.

Assisted by: Andreas W..

Author Posts
October 28, 2023 at 12:09 pm #14683497

mustafaS-13

I am trying to:
the translated navigation menu on all pages doesn't have the dropdown menu I created on the original nav menu using elementskit. I'll attach a screenshot of the original and what I get on the translation pages.

I tried to enable the megamenu content for the translation menu all to no avail.

Link to a page where the issue can be seen:
hidden link

Original page with dropdown menu showing:
hidden link

How did I build the original drop down menu:
I utilised the elementskit mega menu (where I get to 'enable megamenu' it under Appearance -> Menu).
Image attached

Since it didn't appear automatically, I tried to do it manually uon the translated menu. However, after clicking the 'enable megamenu' like I did with the original menu, I could not save it (it keeps loading)

If I try editing the megamenu content, I get the following error (on translated English menu):
{"code":"rest_no_route","message":"No route was found matching the URL and request method.","data":{"status":404}}

Screenshot 2023-10-27 071711.png
Screenshot 2023-10-27 071557.png
Screenshot 2023-10-27 071521.png
October 28, 2023 at 5:04 pm #14684371

Andreas W.
WPML Supporter since 12/2018

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

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

Hello,

First, could you please increase your WP Memory limit to 256M? 128M is the minimum required by WPML.

Your current values are:

PHP Memory Limit 5120M
WP Memory Limit 40M
Add this code to your wp-config.php to increase WP memory:

define('WP_MEMORY_LIMIT', '256M');

Paste it just before:

/ That's all, stop editing! Happy blogging. /

Now, verify the current settings at WPML > Support > WordPress. Then complete the translation again.

These settings can be limited directly by your hosting provider, so I recommend you contact and ask them to modify them directly.
If you can get even higher values It would be great.

https://wpml.org/home/minimum-requirements/
Note: WPML needs a minimum WP Memory limit of 128M to work only under a minimal environment, which means, with a default theme and no other plugins installed.

Then, please make sure that the theme and all plugins are updated to the latest available version and test again.

Further, in case the issue does persist, would it be possible for you to try testing with a different language URL format?

If so, please go to WPML > Languages > Language URL format and change it to "Languages in directories".

Then save the WordPress Permalink Settings.

If this will not solve the issue or you are not able to run this test, then please let me know.

Best regards
Andreas

October 30, 2023 at 5:32 pm #14694193

mustafaS-13

It actually worked and I'm able to edit the content.

However, I have to do so for up to 11 different languages

Also the menu images didn't duplicate

October 31, 2023 at 2:43 pm #14701035

Andreas W.
WPML Supporter since 12/2018

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

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

Hello,

Yes, indeed it appears as if you have to enable the Mega Menu and edit it accordingly for each language manually. WPML Menus Sync can not sync that content for you.

Also, please go to WPML > Settings > Custom Field Translation and make sure that the following fields are set to "Copy"

elementskit_template_activation
elementskit_template_condition_a
elementskit_template_condition_singular
elementskit_template_type

Then, make sure that your Header Templates are translated and actually set with Type as "Active" and that it has the matching display condition.

Best regards
Andreas

October 31, 2023 at 8:13 pm #14703525

mustafaS-13

I don't see these there:

elementskit_template_activation
elementskit_template_condition_a
elementskit_template_condition_singular
elementskit_template_type

November 1, 2023 at 1:21 am #14704593

Andreas W.
WPML Supporter since 12/2018

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

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

Hello,

You do not see the fields that I show on my screenshot at WPML > Settings > Custom Field Translation?

If so, I would like to offer to have a closer look at the problem and request temporary access (wp-admin and FTP) to the website to investigate this issue further.

You can find the required fields below the comment section when you log in to leave the next reply. The information you provide is private, which means only you and I can see and access it.

IMPORTANT
Please be sure to make a backup copy of the website and database before allowing us access.
If you can't see the wp-admin / FTP fields, your post and website credentials are set as PUBLIC. DO NOT publish the data unless you see the required wp-admin / FTP fields.

The private response form looks like this:
hidden link

Next time you reply, click "I still need assistance."

Video:
hidden link

Please note that we are obliged to request this information individually on each ticket. We may not access any access information not specifically submitted on this ticket in the private response form.

Best regards
Andreas

custom fields.png
November 3, 2023 at 5:01 pm #14727523

Andreas W.
WPML Supporter since 12/2018

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

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

Hello,

Those fields only control the template conditions from ElementsKit.

You do not see the fields as you did not create an ElementsKit Header or Footer as explained here:

hidden link

In your case, you are using the default Elementor Templates, which means that those fields are not taking effect in this case.

The menus themselves still need to be translated manually in each language, as explained earlier.

In case this will not work as expected, please let me know.

Best regards
Andreas

November 4, 2023 at 1:05 am #14729721

mustafaS-13

I get that

However, there are still several pages that don't inherit the original header style and the body content overlaps with the header.

E.g

Original page:
hidden link

Translated page:
hidden link