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

Problem:

The Martfury theme by DrFury - mobile menu is not showing the translation although that the menu is translated.

Solution:

The theme is saving the mobile menu to a transient, like a temporary cache.
This causes the same menu to be displayed in both languages.
We can avoid using this transient by adding this line, for example in functions.php of your theme:

add_filter( 'pre_transient_martfury_nav_menu_query', '__return_empty_array' );

To avoid theme updates overwriting this we can use a child theme.

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

Last updated by fransA-2 1 year, 7 months ago.

Assigned support staff: Itamar.

Author Posts
August 11, 2018 at 9:19 am #2636231

fransA-2

I have my site in 2 languages, dutch and german
The primary menu, is set as primary and mobile menu.
When I change language the primary menu change, the mobile menu DON`T change
I tried made the menu`s , primary and mobile seperate, no succes
Did the shwitch to theme seventeen, mobile menu works
switch back to my theme, mobile menu don`t work again
also deactivated plugins etc. everything without succes

In the pictures you can see that the mobile menu in both languages is the same

please advice

August 12, 2018 at 7:46 pm #2638108

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi.

Your site is in maintenance mode, and I cannot see the problem.
Can you please let me have access to your site so I can see the problem?

I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to a testing site where the issue is replicated.
You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.
Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved, I will delete the local site. Let me know if this is ok with you.
** IMPORTANT **
- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields, this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this:
hidden link

Thanks,
Itamar.

August 13, 2018 at 6:40 pm #2640913

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi and thanks for the access details.

I've re-saved the Primary Menu on your site both for the Dutch language and the German language and now it seems alright. Please see the attached screenshot.

Could you please confirm that it is OK now?

Thanks,
Itamar.

August 13, 2018 at 7:11 pm #2641019

fransA-2

Hi Itamar, No its not oke yet. Now I have in the dutch and german language the mobile menu in german. It does not switch back to the dutch mobile menu wenn i go to the dutch language. In every language I get the german language now. Please advice

August 14, 2018 at 12:42 pm #2643390

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi.

Yes, I can see it now.
The mobile menu is always in the language of the last saved menu.
Could you please go to WPML -> WP Menu Sync, sync the menus and see if it helps to solve the problem?
You can read more about syncing menus here.
https://wpml.org/documentation/getting-started-guide/translating-menus/#option-2-automatic-menus-sync-by-wpml

Regards,
Itamar.

August 14, 2018 at 4:57 pm #2644084

fransA-2

Hi,
I already did that, No Succes 🙁
Regards,
Frans

August 15, 2018 at 8:46 pm #2647757

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi and thanks for trying my suggestion.

I'm consulting our second tier supporters about this issue and once that I have tier comment on this I'll reply here.

Thank you for your patience,
Itamar.

August 16, 2018 at 8:02 am #2648787

fransA-2

Okay, thanks I will wait for a solution , regards Frans

August 16, 2018 at 9:55 pm #2651516

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi.

Our second tier supporter says that it might be an issue with the theme.
Can you please try to momentarily place another translated menu as the mobile menu and see if then the translation of the menu shows on the front-end?

Regards,
Itamar.

August 19, 2018 at 11:20 am #2657127

fransA-2

Also no Succes

August 20, 2018 at 8:58 am #2658677

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi and thank you for trying that.

The theme that you are using the Martfury by DrFury is not in our compatibility list here.
https://wpml.org/documentation/theme-compatibility/
Not being on this list does not mean that it is not compatible it just means we do not know yet if it is. But there seems to be an issue of compatibility with the mobile menu.

I created a test website with a clean WordPress install with WPML (unconfigured). You can access it through this link:
hidden link - Through this link, you will be automatically logged in.

Can you please install the Martfury by DrFury theme on your site and see if the issue is also happening on this test site?

This way we will be sure that there is no confliction with another plugin and if the issue is also replicable on the test site, I'll be able to get our compatibility team help on this issue.

Please let me know once it is done.

Regards,
Itamar.

August 20, 2018 at 10:05 am #2658874

fransA-2

Hello, I have install the theme on the test site. The problem with the mobile is still there. Best regards

August 21, 2018 at 4:34 pm #2664000

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Thank you for installing the theme on the test site.

I can see the issue also on the test site.
I've escalated this issue to our compatibility team, and they will try to find a fix for this.
Please note that the Martfury theme be DrFury is not in our compatibility list.
Not being on this list does not mean that it is not compatible it just means we do not know yet if it is.
https://wpml.org/documentation/theme-compatibility/
hidden link

I'll keep you updated here on any news from our compatibility team.

Thanks,
Itamar.

August 21, 2018 at 5:22 pm #2664110

fransA-2

Thanks for the feedback, I will wait if there will be a solution. Best regards

August 21, 2018 at 5:38 pm #2664199

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Sure, I'll keep you updated.