Jump to content

FORCE DESKTOP MODE ONLY


Shamon

Recommended Posts

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}">

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated