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

XF 1.3 Conditional in template EXTRA.css

Discussion in 'XenForo Questions and Support' started by LordsKing, Jun 5, 2014.

  1. LordsKing

    LordsKing Active Member


    I would to add some conditionals in the template EXTRA.css, but my conditionnal (visitor is staff) doesn't work :(
    I need to do that because it's for create an add-on, if no possibility to do that, please tell me how to do :)
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Conditional statements don't work in EXTRA.css.

    You will need to edit the template instead.
  3. LordsKing

    LordsKing Active Member

    Ok thanks, and is it possible to insert Conditional statements in the next version of XenForo ?
  4. Mike

    Mike XenForo Developer Staff Member

    CSS is not based on any user conditionals. You should conditionally add the class/HTML that should be applied but the CSS is always available.

Share This Page