• 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

Jake Bunce

XenForo moderator
Staff member
#3
Admin CP -> Appearance -> Templates -> PAGE_CONTAINER

At the top you will see this line:

Code:
<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:

Code:
<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" />
</xen:if>
You need to create a custom user field for this though:

Admin CP -> Users -> Custom User Fields