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

XF 1.5 Css ordering in xen:require tag

sajal

Active member
#1
I'm using <xen:require css="custom.css" /> to add my custom CSS. But, it seems that xenforo CSS is overriding it.

Is there any "order" attribute for xen:require tag so that my css is loaded at the end?
 

Mike

XenForo developer
Staff member
#2
CSS is loaded in alphabetical order for caching consistency. You should use a higher specificity in your custom CSS so that order isn't relevant or re-name your file so it's loaded later.