WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question is related to my earlier question, but I think it's specific enough to qualify as a standalone question.

I am modifying an existing theme (the Twenty Ten theme that ships with WordPress), and I would like to completely control the colors used. The Admin Screen allows the administrator to select a background color, and this seems to be implemented in one of the actions that are automatically registered to the wp_head hook (listed by Bainternet here).

So I would like to do two things:

  • Remove the Color Options menu from the Admin Screen when my theme is activated. Is this possible and if so, how would I go about doing this? (Links to documentation welcome!)
  • Remove the automatically registered action to wp_head that controls the color. Which action in particular would be responsible for this? (rsd_link, etc?)

Thanks for your help.

share|improve this question
up vote 0 down vote accepted

In TwentyTen’s functions.php the custom background is added in twentyten_setup() which is called on the action 'after_setup_theme'.

So, in your child theme, the following should remove the option completely:

// Higher priority to work after TwentyTen
add_action( 'after_setup_theme', 'wpse12934_remove_custom_background', 20 );

function wpse12934_remove_custom_background()
share|improve this answer
Thanks. Really basic question - where would I add this? :) – user4184 Mar 24 '11 at 14:58
@ephemeral In your child theme’s functions.php. – toscho Mar 24 '11 at 15:13
that's great, thanks! – user4184 Mar 24 '11 at 15:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.