Tagged: flags, mobile menu, wpml
-
AuthorPosts
-
October 6, 2017 at 12:07 pm #860960
I am trying to: Remove the second language switcher flag in our mobile menu
URL of my website where problem appears: (only mobile): http://global-meat.de/I expected to see: Only one flag with the dropdown to the other flag
Instead, I got: Three Flags
Steps to duplicate the issue: View the burger menu on mobile, you’ll see three flags instead of one (also see screenshot)
Thank you very much for your time and I am looking forward to your response!October 9, 2017 at 9:18 pm #862108Hey lightmanlight,
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
- Install and activate ” Temporary Login Without Password “.
- Go to ” Users > Temporary Logins ” on the left-side menu.
- Click ” Create New “.
- Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
( do be sure that we have enough time to debug ). - Click ” Submit “.
- You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.
When your issue is fixed, you can always remove the plugin!
If you prefer to not use the plugin, you can manually create a admin user and post the login credentials in the “private data” field.Best regards,
BasilisOctober 10, 2017 at 12:06 pm #862428Link is below ;-)
October 13, 2017 at 2:54 am #863713Hi,
Thank you for the info.
Please edit the js > avia.js and replace everything with the following code.
// https://pastebin.com/rWXD8NwD
Best regards,
IsmaelOctober 13, 2017 at 9:28 am #863809Hi Ismael,
I’m sorry, but your code doesn’t work at all…
With the new avia.js code, the mobile navigation doesn’t open and no images where shown at the whole page (excluding the rev. slider).So what else can we do?
Kind regards,
AlexOctober 15, 2017 at 4:38 am #864388Hi,
I forgot to include the wpml modification. Please edit or create the enfold/ config-wpml / wpml-mod.js file then add the following script.
(function($) { "use strict"; $(document).ready(function() { /** * Remove Themes duplicated language switcher flags from Burger menu * - exist in secondary menu * - exist beside search icon */ $('body').on( 'avia_burger_list_created', '.av-burger-menu-main a', function(){ var s = $(this); // allow DOM to build setTimeout(function(){ var switchers = s.closest('.avia-menu.av-main-nav-wrap').find('.av-burger-overlay').find('.language_flag'); switchers.each( function(){ $(this).closest('li').remove(); }); }, 200); }); }); })( jQuery );
Best regards,
IsmaelNovember 14, 2017 at 4:37 pm #876653Hi, I had the same issue.
I did what you say here but maybe I misunderstood:
– replace avia.js code with the one included in the link: https://pastebin.com/rWXD8NwD
– add to avia.js file the code you mentioned after (maybe it’s not here this code applies?)
Anyway, now, my burger menu completely disappeared…
Can You help me?November 16, 2017 at 5:01 am #877359 -
AuthorPosts
- You must be logged in to reply to this topic.