Okay
  Public Ticket #428937
Duplicate language switcher patch doesn't work anymore
Closed

Comments

  • Yannik started the conversation

    Hi

    I had a duplicate language switcher in mobile view, and you told me to remove the following code in init.js (see ticket #403882)

    //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'); } 

    I recently update my theme to 5.5.51 and when I apply the patch (delete the code in init.js), my website won't load anymore, I only have the spinning wheel.


    Do you have a patch for this patch?


    Thanks!


  •  8,849
    Tahir replied

    Hey,

    You have likely deleted something else as well . Simply commenting out the line should not break the js file.

    Thanks


    ThemeNectar Support Team 

  • Yannik replied

    Sorry for that!

    I tried it again and it works!

    I don\'t know what I did last time...