How to force desktop view on mobile devices - Bootstrap?
You just need to set the Viewport
<meta name="viewport" content="width=1024">
Instead of this (Responsive version)
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Look at here. Should solve your issue.
SO - bootstrap-3-desktop-view-on-a-mobile-device
SO - how-to-show-desktop-version-on-mobile-screens-in-bootstrap-3
Thanks All,
This code works for me:
var viewMode = getCookie("view-mode");
if(viewMode == "desktop"){
viewport.setAttribute('content', 'width=1024');
}else if (viewMode == "mobile"){
viewport.setAttribute('content', 'width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no');
}