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

Conditional question - only if the sidebar is going to be shown

Discussion in 'XenForo Development Discussions' started by motowebmaster, Jan 5, 2014.

  1. motowebmaster

    motowebmaster Active Member

    I'm trying to figure out how to limit the display of some javascript code only to circumstances when the sidebar is going to be displayed.

    Can anyone help me out?
  2. Brogan

    Brogan XenForo Moderator Staff Member

    <xen:if is="{$sidebar}">
  3. motowebmaster

    motowebmaster Active Member

    Thanks, that did it!

Share This Page