S sajal Active member Dec 15, 2016 #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?
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 Dec 15, 2016 #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. Upvote 0 Downvote
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.
S sajal Active member Dec 15, 2016 #3 @Mike, thanks it worked. I just prefixed the css filename with "z_"! Upvote 0 Downvote