1. 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

Discussion in 'Styling and Customization Questions' started by RoyalRumble, Sep 30, 2014.

  1. RoyalRumble

    RoyalRumble Active Member

    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
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. RoyalRumble

    RoyalRumble Active Member

    Thanks @Brogan , appreciate the very quick response, instruction and referral link. I did come across that resource but couldn't quite get my head around it. I'll give it another read.
     

Share This Page