XF 2.2 Multiple extra.less files possible?

sbj

Well-known member
Hello,

my extra.less gets bigger and bigger (right now 1600 lines of code). It gets messy with each new thing. I want to categorize or separate things into multiple files.

Can I safely create a new template and call it extra2.less and it will work just like the regular one (core updates won't affect)?
 
You can create new templates and call them in the extra.less template using {{ include('template_name.less') }}.
Just to confirm, so basically with new upgrades of the core software, they won't be touched just like the extra.less file and will be called?
Thank you, that's great.
 
Correct - custom templates and extra.less are never overwritten.

I did actually edit my post - the original code I provided was for including a less template in an html template.
 
  • Like
Reactions: sbj
Back
Top Bottom