Shamon Posted May 22, 2019 Share Posted May 22, 2019 Hi, How can I force clientarea desktop mode only after a client logged in. (If logged in then desktop mode only) Thanks 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted May 25, 2019 Share Posted May 25, 2019 Open templates/{YOUR_TEMPLATE}/header.tpl and look for the following meta tag: <meta name="viewport" content="width=device-width, initial-scale=1"> Replace it with: <meta name="viewport" content="{if $loggedin}width=1024{else}width=device-width, initial-scale=1{/if}"> This forces desktop view on mobile devices on all pages to loggedin users. Keep in mind that it doesn't work when resizing browser window on desktop. If you want that to work only with clientarea pages then use this code: <meta name="viewport" content="{if $loggedin AND $filename == 'clientarea'}width=1024{else}width=device-width, initial-scale=1{/if}"> 1 Quote Link to comment Share on other sites More sharing options...
Jafar Muhammed Posted May 25, 2019 Share Posted May 25, 2019 But I request you not to restrict your customers in such a way. It will be an imposed disaster to your customers, and the UX would hit very severely. Of course, you may have a specific case, but still converting your mobile visitors to this kind of forced desktop view wouldn't fix the problem. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.