1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Allow members to view unresponsive site on mobile

Discussion in 'XenForo Questions and Support' started by NeoCHI, Mar 16, 2015.

  1. NeoCHI

    NeoCHI Active Member

    Is there a way to give members a link to disable responsiveness and view as desktop version?
  2. Dylan V

    Dylan V Well-Known Member


    You can have it here.
  3. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Admin CP -> Appearance -> Templates -> PAGE_CONTAINER

    At the top you will see this line:

    <xen:set var="$isResponsive" value="{xen:if '@enableResponsive AND !{$noResponsive}', 1, 0}" />
    You can replace it with code like this to check a custom user field:

    <xen:if is="{$visitor.customFields.field_id} == 'yes'">
    	<xen:set var="$isResponsive" value="{xen:if '@enableResponsive AND !{$noResponsive}', 1, 0}" />
    <xen:else />
    	<xen:set var="$isResponsive" value="0" />
    You need to create a custom user field for this though:

    Admin CP -> Users -> Custom User Fields

Share This Page