Okay
  Public Ticket #403882
Duplicate language switcher in mobile menu
Closed

Comments

  • Yannik started the conversation

    I use WPML.

    On mobile view, I have the language flags duplicated in the mobile menu (2 French flags and 2 English flags).

    I already checked post http://themenectar.ticksy.com/ticket/380967 but it doesn't solve the problem.

    I tried to add the following css to the custom css without success:

    #mobile-menu li.menu-item a.sf-with-ul {
    display: none !important;
    }

    Any idea?

    Thanks

  •  8,994
    Tahir replied

    Hey,

    Could you allow us to log in to your website backend dashboard so we can check on this for you more?. We are gonna need the username and password of admin user as well as the login url.

    Thanks


    ThemeNectar Support Team 

  •   Yannik replied privately
  •  8,994
    Tahir replied


    Hey - delete this section from the init.js file located in the js folder:

    //add wpml to mobile menu 
    if($('header#top nav > ul > li.menu-item-language').length > 0){
     var $langSelector = $('header#top nav > ul > li.menu-item-language').clone();  $langSelector.insertBefore('#mobile-menu ul #mobile-search'); 
    } 

    Thanks


    ThemeNectar Support Team 

  • Yannik replied

    Thanks,

    And do I have to delete this section of code each time I update the theme?

    I'm using a child theme, if I copy the init.js file in the child theme, I will not benefit updates from this init.js file if modifications are done in this file in a newer version, right?

  •  8,994
    Tahir replied

    Hey Again,

    The fix would likely be added in the upcoming release .

    Thanks


    ThemeNectar Support Team 

  • Yannik replied

    Thanks!

  • James replied

    This bug still exists in latest version of Salient and WPML. Why not simply remove code section in https://themenectar.ticksy.com/ticket/403882#comment-1818220 ?

    Pretty ridiculous for users to have to manually patch in the fix...