XF 2.2 Add code to extra.less template

  • Thread starter Thread starter Deleted member 184953
  • Start date Start date
D

Deleted member 184953

Guest
Hello,
I want to add some Less code to extra.less template using template modification for an add-on.
Is it something conventional?
  • If yes, what text to replace can I enter in a template modification knowing that each extra.less template is unique for each forum?
    • How to add Less code at the very end of the template for example?
  • If not what is the best way to add Less code that targets native XenForo elements?
Thank you.
 
I found by myself (post this thread too soon...)
I used regex and put /$/
(y)
 
Thanks @BassMan
I tried your regex but unfortunately my code gets nested in the existing code and eventually breaks it.
As you can see here

Capture web_25-11-2022_202620_localhost.webp
 
Back
Top Bottom