Force Desktop Override on Mobile Pages
It is a common feature in mobile implementations to integrate a link that allows a user to view a mobile page in its full desktop version. The rather swift integration of setting cookies is explained in 3 easy steps.
Description
It is a common feature in mobile implementations to integrate a link that allows a user to view a mobile page in its full desktop version. In order to remain in a selected view mode when linking to other pages or to switch again to the original view and remain in it, it is easier to pivot the view mode on a cookie rather than managing it in the code.
Step-by-Step
Setting a cookie to either mobile or desktop mode can be implemented in 3 simple steps:
- Upload folder mobile-cookies.js to the prebuilt directory of the site: .zip file "mobile-cookies.js",
- Reference mobile-cookies.js in the head section: Sample,
- Add variable siteType to the site's list of variables: Variable sample,
- Set the link to another view and trigger the cookie: Link sample.
There are no comments yet.