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

xen:require question...can I do this?

Discussion in 'XenForo Questions and Support' started by EQnoble, Jul 6, 2011.

  1. EQnoble

    EQnoble Well-Known Member

    <xen:require css="name_of_css_template.css" media="screen"/>
  2. Wuebit

    Wuebit Well-Known Member

    Hmm what are you trying to do with the media="screen" part?
  3. EQnoble

    EQnoble Well-Known Member

    it is really hard to explain...all I know is the thing I am working with requires it...if I remove the "screen" the addon won't work.
  4. Wuebit

    Wuebit Well-Known Member

    Than if it works I guess you can do it :)
  5. EQnoble

    EQnoble Well-Known Member

    hahah no what I meant was...I have it working standalone... with out including it into xf...if I remove screen it doesn't work...which is why I was asking ...I don't want to waste time trying to implement it into xf if doing that is not possible...I haven't exactly tried it yet but I also am not the best at debugging my errors so I figured I'd ask first :)
  6. Brogan

    Brogan XenForo Moderator Staff Member

    I wouldn't have thought the second part would be parsed correctly as it's custom XenForo syntax and I have only ever seen it used with a single css template declared.
  7. EQnoble

    EQnoble Well-Known Member

    I don't think it would either if that makes a difference :)

    This is what part of the thing I was trying to include:
    <link rel="stylesheet" type="text/css" href="css/mysecret.css" title="style" media="screen"/>

    but to be honest I have had two people who know better than me take a look at it and they have no clue how in totality, or if what I am trying to include could be included in anything...in fact both of them still don't get how the thing completely works...not that I do :)

Share This Page