Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
You can choose the colour scheme when you edit a user – That way admins can choose their own colour scheme.
Tom
(@jeffreeeeey)
This is pretty neat, however it’ll only work for users registered on the site AFTER implementing the function
Not ideal perhaps, but I found it helpful as a temp solution
You can force everyone to use the same color scheme: http://halfelf.org/2013/mp6uccess-tips-and-tricks/
Thread Starter
galher
(@galher)
Thanks Mika. Great article but I try to avoid hacks if possible and with this filter users will not be able to change the theme if they want to.
I think choosing the default color scheme should be an option and somebody who can code this will implement it.
So I will wait.
Thanks for your replies. :]
This code, forked from Till Kruess, should meet your needs as it did mine:
https://gist.github.com/andrewsfreeman/8062263
It hooks into the get_user_option for the admin color scheme – if a user has a WP 3.7 style saved, like fresh or classic, it forces a new default instead. Luckily, users can still change their own theme.
That’s not a hack, galher. That’s how you’re supposed to do it. But in theory if they have not picked a new color, they should be set to ‘fresh’, so Andrew’s code is good way around it 🙂