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

XF 1.4 If responsive this, if not, this

#1
Hi everyone,

I've spent several hours this afternoon, reading through the various resources in an attempt to achieve this but have failed miserably. I'm hoping one of you good people can step in and help.

Basically, on the footer of my forum I want to display one piece of creative if the browser is responsive, and another if desktop. From reading the forum, I understand the below should achieve this;

Code:
<center>
<xen:if is="@enableResponsive">
Mobile
<xen:else />
Desktop
</xen:if>
</center>
As you'll see here;

upload_2014-9-30_14-2-32.png



However, no matter what screen res I'm on, using the example above, 'Mobile' remains.

upload_2014-9-30_14-4-16.png

upload_2014-9-30_14-4-41.png

Any help would be very much appreciated.

Thanks
 
#3