Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS How to Change Meta theme dynamically with css? Reply To: How to Change Meta theme dynamically with css?

#242582
I.m.learning
Participant

I never heard of anyone doing this. I would expect the same result; unfortunately, I am using an ancient smartphone that limits testing and does not allow mw to view a lot of what newer phones could view.

What have you tried?

I have changed my meta tags through php; adding colors as a variable and placing those variables in a dynamic style sheet, and then using onclick for the options in the html seems like a logical choice.

Can you change the colors as is? If you can, then you should be able to. I could do some web searches, but without being able to test, I wouldn’t know if it works. Just by searching what you’re asking brings up a lot of people asking to change the color for themselves.

Now, I did just happen to find this https://html.spec.whatwg.org/multipage/semantics.html#meta-theme-color