0

I have a simple question. How to change widget's form color in admin panel of wordpress (on widgets page) to make them more unique? Here is a simple example:

example

1 Answer 1

1

Register/enqueue an admin stylesheet

function my_admin_theme_style() {
    wp_enqueue_style('my-admin-theme', get_template_directory_uri().'/admin-style.css');
}
add_action('admin_enqueue_scripts', 'my_admin_theme_style');

Then add rules of the form

#widget-list div[id*="_archives-"], div[id*="_archives-"] {
  background:red;
}

Consider that proof of concept. I will leave it up to you to target the precise elements you want.

1
  • God damn, that was so easy.. I already forgot how powerful may be sometimes css selectors. Thank, I'm very appreciated, works like a charm!
    – user13250
    Jun 9, 2013 at 19:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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