Dnn.Platform icon indicating copy to clipboard operation
Dnn.Platform copied to clipboard

[Enhancement]: Ability to remove dnn-css-variables.css

Open BondForWebSolutions opened this issue 2 months ago • 2 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Description of problem

So, even though I really like that we now have a styles tab in DNN where we can set some variables, if you're not using it, then why should it be included in each page. Even though it's a small file, it's just an extra file that some people do not need. As it says in the description "These style preferences may or may not be implemented by a theme or extension."

So is there a way to NOT include them in each page request... If not, it might be an idea to add this option.

Description of solution

Add an option to not include the css file.

Description of alternatives considered

No response

Anything else?

No response

Do you plan to contribute code for this enhancement?

  • [ ] Yes

Would you be interested in sponsoring this enhancement?

  • [ ] Yes

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

BondForWebSolutions avatar Oct 28 '25 10:10 BondForWebSolutions

We can/should add a name when we register it, then you can use DnnCssExclude in your theme to remove it. Would that work?

bdukes avatar Oct 28 '25 13:10 bdukes

Agree! We also find it difficult to create a neutral admin / settings interface. Is there a way to use the "old" DNN 9 interface?

wbonekamp avatar Oct 29 '25 15:10 wbonekamp