Home › Forums › Theone WordPress Theme › only Mobile version with chrome and Firefox
- This topic has 4 replies, 2 voices, and was last updated 10 years, 3 months ago by
SeaTheme.
-
AuthorPosts
-
March 16, 2016 at 12:20 pm #10186
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
March 16, 2016 at 12:44 pm #10187By the way i’m using 1.38 version of theone theme
March 16, 2016 at 2:33 pm #10193Hi,
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'); } });March 17, 2016 at 5:28 pm #10209hi,
With the ‘trick’ the full menu is available, but another problem arise : on a ipad (landscape view) the menu doesn’t appear (cf. : picture).
March 18, 2016 at 12:54 am #10214With 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'); } }); } -
AuthorPosts
- You must be logged in to reply to this topic.
