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.
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)
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!
Hey,
You have likely deleted something else as well . Simply commenting out the line should not break the js file.
Thanks
ThemeNectar Support Team
Sorry for that!
I tried it again and it works!
I don\'t know what I did last time...