Home Forums Theone WordPress Theme only Mobile version with chrome and Firefox Reply To: only Mobile version with chrome and Firefox

#10214

BWSM
Keymaster

With the ‘trick’ the full menu is available, but another problem arise : on a ipad (landscape view) the menu doesn’t appear (cf. : picture).

Does it works on your win10 device now?

Try to update the code a :

if(themeData.isMobile()){
			themeData.body.addClass('ux-mobile');
			themeData.navi.css('max-height',themeData.winHeight - 60);
		} else {

			if(themeData.win.width() > switchWidth) {
				themeData.body.removeClass('ux-mobile');
				themeData.navi.css('max-height','none');
			} else {
				themeData.body.addClass('ux-mobile');
				themeData.navi.css('max-height',themeData.winHeight - 60);
			}

			themeData.win.resize(function(){
				if(themeData.win.width() > switchWidth) {
					themeData.body.removeClass('ux-mobile');
				} else {
					themeData.body.addClass('ux-mobile');
				}
			});
		}