Skip to content Skip to sidebar

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

Problem:
The client created a mega menu with the basic language set to UK English, which functions correctly. However, in the Dutch version, all menus in the Megamenu are displayed twice.
Solution:
We recommend applying specific CSS rules targeting the Dutch version to hide the duplicate menu. Here is an example of the CSS code you can use:

html[lang="nl-NL"] .elementor-nav-menu--dropdown {<br />    display: none;<br />}

Please note that providing custom code support is beyond our usual scope. The code shared above is for demonstration purposes and might help solve the issue. If you need further assistance with custom coding, please consider hiring a certified developer from https://wpml.org/contractors/.

If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please do not hesitate to open a new support ticket at WPML support forum.

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

Last updated by Prosenjit Barman 1 year, 10 months ago.

Assisted by: Prosenjit Barman.

Author Posts
June 18, 2024 at 7:37 am #15747618

basS-4

Background of the issue:
We created a mega menu. The basic language is UK, which works well. The 2nd language is Dutch.

Symptoms:
All menus in the Megamenu are shown twice in the Dutch version.

Questions:
Do you have an idea what's going wrong?

June 19, 2024 at 9:05 am #15754293

basS-4

Can someone help me?

June 20, 2024 at 9:03 am #15762284

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There,
Thanks for contacting WPML Support. Sorry for the delay in responding.

We are currently experiencing a high volume of tickets, which has caused a delay in our responses. We are addressing this and will ensure that responses are sent in a timely manner from now on. Thank you for your patience and understanding.

I understand the issue you're experiencing. The default popup contains two navigation menus, and one of them is set to be hidden using CSS. Please see the attached screenshot for reference.

It appears that the CSS rules are not being applied to the secondary language, which is why both menus are visible in the Secondary language.

The issue can be resolved by applying the same CSS, specifically targeting the secondary language. For example, check the CSS code below:

html[lang="nl-NL"] .elementor-nav-menu--dropdown {
    display: none;
}

I hope this helps. Please note that providing custom code support is beyond the scope of our support. The code shared above is for demonstration purposes and might help solve the issue. If you need further assistance with custom coding, please consider hiring a certified developer from here: https://wpml.org/contractors/.

Feel free to let me know if you need further assistance in this matter. I will be happy to help.

Best regards,
Prosenjit

June 21, 2024 at 6:22 am #15771320

basS-4

Thanks!