XF 2.1 [SOLVED]Single CSS file used across all templates of addon?

asprin

Active member
I want to include a stylesheet that would contain CSS classes which will be used by the templates that I create for my addon src/addons/addon-ID/_output/templates/public/*

What is the appropriate place to place that .css file?

I've heard about extra.less file. But I'm not sure whether the rules that I write there would be included as part of my addon file when I build it and pass it onto others for use.

Similarly, if I have to include js files, where would I put it and how would I reference it?
 
Sorry, posted to soon. extra.less is indeed the right place. There is an option at the bottom to select the addon to which the file would be associated with in ACP.
 
Back
Top Bottom