1

I want implement theme option which will have two css files.

Example, if current admin set their profile to blue color I want load blue css for the theme options.

if (current-value-css-admin)
  load blue
else 
  load gray

Let me know how do I get current data for the wp admin color.

2

This can be retrieved with $color = get_user_option('admin_color');, just don't forget to check for empty return and default to something in that case.

Native color schemes are called fresh (grey) and classic (blue).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.