XF 2.0 how to include extra.less from one theme into another?

electrogypsy

Well-known member
Hi, I'm using a custom theme for one of my forum nodes, but whenever I make changes to extra.less in the main theme I get a message about templates being outdated (the extra.less in the node-specific theme). In order to keep from having to update both extra.less templates, I figure I could link one to the other as you would in any html file, but since both templates are called 'extra.less' I'm guessing I would need some way to specify the theme like uixdark:extra.less or something like that? not sure what the format would be, so I'm hoping someone here could help.

thanks!
 
If the extra.less are the exact same and one is the child of the other, just revert the changes of the child template (top right corner). This way, the child will always take the parent's template.
 
If you need edits specific to a child style, just create an additional template and include it inside the parent's extra.less. Then put those changes into the child style's template, the parent would be blank.

Edits that you want to apply to both parent and child can go inside extra.less.
 
Back
Top Bottom