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

Override xen:require css

Discussion in 'XenForo Development Discussions' started by Sadik B, Sep 23, 2012.

  1. Sadik B

    Sadik B Well-Known Member

    I am extending MicroCart for our particular needs. The addon has <xen:require css="microcart.css" /> in very many templates. I don't want to edit the microcart.css template for obvious reasons. The question is, is it possible to override the xen:require command to have it require something else instead of the passed css template name argument. Basically what I want to do is have a code something like the below pseudo code

    if (require == 'microcart.css') {
    require = custom_microcart.css

    Is there any way of achieving this?
  2. Lycaon

    Lycaon Well-Known Member

    Not sure if this would work but can you not copy the contents of microcart.css into EXTRA.css and make the changes there?
  3. Sadik B

    Sadik B Well-Known Member

    Yes of course. But I don't want to edit Extra.css either because I use a custom pre-made skin. Secondly, I don't want all of the css to be available everywhere when I am only going to use them on the cart.

Share This Page