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

XF 1.2 Disable responsive design on certain pages

Discussion in 'Styling and Customization Questions' started by mistypants, Dec 17, 2013.

  1. mistypants

    mistypants Well-Known Member

    I have a lot of existing pages that will need to be re-coded for responsive design. I read in the initial announcement of responsive design that you could disable it on a page-by-page basis:
    I searched and found this post by Brogan. Where do I put that code? Does the '1' in it represent the node I want the responsive design disabled on?

    Finally, since I want to disable it on multiple nodes, can I make it a comma list, like so:
    Code:
    <xen:container set="$noResponsive">1,2,3,4</xen:container>
    Any help is greatly appreciated!
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    You have to add that code to each page/template.
     
  3. Brogan

    Brogan XenForo Moderator Staff Member

    This is what I use for my page nodes:
    Code:
    <xen:container var="$noResponsive">1</xen:container>
     
  4. mistypants

    mistypants Well-Known Member

    When I try that it gives me an error:
     
  5. Brogan

    Brogan XenForo Moderator Staff Member

    Check my code above.
    Use var instead of set.
     
    mistypants likes this.
  6. mistypants

    mistypants Well-Known Member

    Got it, thanks!
     

Share This Page