• Resolved vicdilu

    (@vicdilu)


    Hi,

    We are using WPglobus for our multilingual website and everything is working fine but the dropdown menu in mobile.

    The menu (and dropdowns) in desktop is working fine, also the main items in the mobile menu, but the dropdown menu in mobile is not getting the translations, instead it is showing all languages, for example:

    {:eu}Erreserba egin{:}{:es}Reservar{:}{:en}Book{:}{:de}Buchen{:}{:fr}Réserver{:}

    We are using the theme harest pro.

    Who can we fix this problem?

    Thanks in advance

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Alex Gor

    (@alexgff)

    To fix the issue you should
    1. open WPGobus Options page
    2. select Custom Code tab
    3. add code to Custom JS Code option

    jQuery(document).ready(function($) {
    	if ( 'undefined' !== typeof WPGlobus ) {
    		setTimeout(function(){WPGlobusRegexp();},500);
    	}
    	function WPGlobusRegexp() {
    		if ( $('#menu-main_menu-1').length < 1 ) {return;} 
    		var WPGregexp = new RegExp( '{:' + WPGlobus.language + '}[^{]+' );
    		$('#menu-main_menu-1 .sub-menu a').each(function(i,e){
    			var t = $(e).text();
    			var r = WPGregexp.exec(t);
    			if ( 'undefined' !== typeof r[0] ) {
    				r = r[0].replace('{:'+WPGlobus.language+'}', '');
    				$(e).text('- '+r);
    			}		
    		});
    	}
    });

    4. click Save Changes
    5. check out on frontend

    Thread Starter vicdilu

    (@vicdilu)

    Hi,

    Thanks for your prompt reply.

    I have made this change (and I have also cleared the cache) but the problem remains.

    Is there any other thing I could try?

    Plugin Contributor Alex Gor

    (@alexgff)

    Please update WPGlobus to v.2.6.8 and check out on frontend again.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Mobile dropdown menu not working’ is closed to new replies.