Hopefully a simple answer to this. Using the wp custom header feature, the media upload screen shows an extra field: "set as header". I'm trying to make this text bigger as it can easily be missed.

Firebug says it has a class of "a.wp-set-header". I can change the font size within firebug and it works, but adding this in my css doesn't do anything - any ideas? Thanks

font-size:22px !important;
font-weight:bold !important;

1 Answer 1


Its likely that you're not enqueing your CSS file to be used in the admin area, however you did not say. Anyway, this is what you can do...

Place the following into your functions.php file:

add_action( 'admin_print_styles', 'my_admin_css' );
add_action( 'wp_enqueue_scripts', 'my_admin_css' );

function my_admin_css(){
   if( is_admin() ) {

Where ../css/custom_admin.css is an assumed directory and file in your theme folder.

You can learn more about the various methods to handle both scripts and CSS files for both the front end and admin starting with,


...the rest of which can be found under the miscellaneous functions section here


...and you shall see related functions at the bottom of each individual function page like that of the above wp_enqueue_style.

  • That worked perfectly - thank you :-) Still don't understand why I have to create a special css sheet and enque it just for this, but I will read your suggested links. Nov 2, 2012 at 10:18
  • The reason is that, the stylesheet that you are using in your theme only gets applied to the front end, not the admin. That's why you need to tell WordPress "Hey I want you to queue up this file on the backend". Which by the way I've made an update to my code, so please adjust yours to reflect this change (using is_admin()). You can use your existing stylesheet in the example if you want but then you would be loading unnecessary styles into your admin area that could conflict. Its always best to separate your styles for logic and best practice purposes regardless of who its for.
    – Adam
    Nov 2, 2012 at 10:23
  • FANTASTIC - Learning so much here, think I'm going to explode! Thanks Nov 2, 2012 at 10:25
  • No problem, the Codex is a great resource to begin with, you can get up to speed on many of the API functions as well as other WP based concepts. Although not the only resource, its a good starting point as a beginner (assuming you are?). Searching WPSE is also an even better idea too, the wealth found in answers here is unparalleled to that of any single site. Any further questions you have along the way - just start a new thread. All the best.
    – Adam
    Nov 2, 2012 at 10:29

Your Answer

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

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