Hook for Extra.css?

Brent W

Well-known member
Basically, I want to have a constant in Extra.css so that I can use TMS to add my own CSS to my forum without having to worry about it being overwritten in a style upgrade.

My understanding with the way that 3rd party styles work when upgrading them is that all templates are overwritten regardless of changes or not.

A way to add css to extra.css without worrying about style upgrades would be nice.
 
Upvote 0
EXTRA.css is not overwritten.

During a style upgrade the EXTRA.css does get overwritten, which is what Bama is saying he wants to remedy so his additions to the EXTRA.css are not overwritten when he upgrades said style.

What I am starting to do is use a custom css template specific to the style and leave the EXTRA.css for the end user to fill in with their edits. That way they just need a backup copy of the EXTRA.css template and not have to worry about comparing changes for upgrades.
 
Yes, I can see now he meant for custom styles.

However, all you need to do is create your own custom template and include it in EXTRA.css.
 
Yes, I can see now he meant for custom styles.

However, all you need to do is create your own custom template and include it in EXTRA.css.

Which will still be overwritten and need to be added back after each update to the style. This becomes a lot of work over time when you have 14+ forums to upgrade. A simple hook in extra.css would solve this problem.
 
You can call your own template from the EXTRA.css as Brogan said.

Code:
<xen:include template="MyCSS.css" />

Put your changes in the new template and away you go.
 
You can call your own template from the EXTRA.css as Brogan said.

Code:
<xen:include template="MyCSS.css" />

Put your changes in the new template and away you go.

That one line that you include is still erased with each update though, correct? So it would still have to be added back with each style overwrite.

I am not suggesting this as a theme designer but as someone who uses many different themes across different sites and wants the upgrade process to be as easy as possible.
 
Could always use child styles as well, install the normal template you'd use, then create a child style underneath it using all your customizations.

On upgrades, when you get the new version of the master style, it will show you(if any) outdated templates your child has.
 
I should note that in 1.2, our template modifications will work in extra.css. You don't need a particular hook - you can simply use the regex to either match the very beginning or very end. So considering this moot.
 
Back
Top Bottom