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

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #10186
    Dounet
    Participant
    Purchased
    Expired

    Hi,

    the theme only appear as its mobile version on my laptop (windows 10) when i use chrome (49.0.2623.87 m) and firefox (43.0.1) . it works with IE edge (20.10240.1638.0).

    Any Idea ?

    Thanks by advance.

    D. Lourie

    #10187
    Dounet
    Participant
    Purchased
    Expired

    By the way i’m using 1.38 version of theone theme

    #10193
    SeaTheme
    Keymaster
    Purchased
    Expired

    Hi,

    I don’t have win10 device to test. Please give more tips, is your device with touch screen?
    If is, there is a “if” in js file for touch device, remove it.
    Change line 455-474 of /js/custom.theme.js as:

    
    
    			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');
    				}
    			});
    		
    #10209
    Dounet
    Participant
    Purchased
    Expired

    hi,

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

    #10214
    SeaTheme
    Keymaster
    Purchased
    Expired

    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');
    				}
    			});
    		}
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.