Discussion:
[Wt-interest] How do you add a stylesheet to the Header
Jeffrey Scott Flesher Gmail
2016-09-30 00:59:32 UTC
Permalink
useStyleSheet does not put it in the header


I want to change the theme by name on the fly by passing in the theme name on the address bar and then using it like this:

useStyleSheet(Wt::WApplication::resourcesUrl() + "themes/wittywizard/" + myTheme + "/ww-" + myTheme + ".css");

If its not in the header, my menu jumps around until its loaded.

I will do a check to make sure the folder exist, so there is no way to do injection for security reasons.

Thanks

Loading...