Skip Navigation

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

Problem:
The client reported that a responsive menu plugin was compatible with WPML, but only one deleted menu (menu 1) was working correctly in both languages. The other menus were not accessible from wp-admin and were not being called by WPML when switching languages.
Solution:
First, we advised the client to modify a line of code in the responsive menu plugin:

if( $m->term_id == $this->option('menu') ) $menu = $m;

should be changed to

if( $m->term_id == get_option('wprmenu_options')['menu'] ) $menu = $m;

This change was to be made in the file

wp-content/plugins/wp-responsive-menu/inc/wprmclass.php

on line 483.
However, we then realized there was a mistake and instead provided a screenshot with the correct modifications to be made in the file

wp-responsive-menu/inc/templates/menu-elements.php

.

If you're experiencing a similar issue, we recommend trying the steps above. However, please note that the solution might be outdated or not applicable to your case. If the problem persists, we highly recommend checking 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 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.

Tagged: 

This topic contains 20 replies, has 2 voices.

Last updated by Kor 1 year, 2 months ago.

Assisted by: Kor.

Author Posts
March 7, 2024 at 5:38 pm #15386197

apostolosT-4

Thank you for your reply

I cannot find the file you indicate wp-content/plugins/wp-responsive-menu/inc/wprmclass.php l

see attached picture from the plugin root

menu1.JPG
March 7, 2024 at 5:54 pm #15386266

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Sorry, my mistake.

Please edit wp-responsive-menu/inc/templates/menu-elements.php as shown in the attached screenshot.

Screenshot_230.png
March 7, 2024 at 6:08 pm #15386351

apostolosT-4

I cannot find the file you reffer to
See attachement

menu12.JPG
March 7, 2024 at 6:11 pm #15386368

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

I made the changes for you here hidden link and could you please try and see if the menu works correctly now?

March 7, 2024 at 6:12 pm #15386372

apostolosT-4

ok found it via ftp
I am making the changes and return to you

March 7, 2024 at 6:13 pm #15386373

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

I made the change already for you.

March 7, 2024 at 6:15 pm #15386377

apostolosT-4

Thank you very much for your help
Your responses where valuable and your determination to solve the problem amazing!