Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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!

    Screenshot

    #862108

    Hey lightmanlight,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. 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 ).
    5. Click ” Submit “.
    6. 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,
    Basilis

    #862428

    Link is below ;-)

    #863713

    Hi,

    Thank you for the info.

    Please edit the js > avia.js and replace everything with the following code.

    // https://pastebin.com/rWXD8NwD

    Best regards,
    Ismael

    #863809

    Hi 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,
    Alex

    #864388

    Hi,

    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,
    Ismael

    #876653

    Hi, 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?

    #877359

    Hi,


    @imagevo
    : Please remove the modifications then upgrade the theme to version 4.2. Don’t forget to disable any plugin/minification cache and hard refresh before checking the page.

    Best regards,
    Ismael

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.