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

Is it possible to enable the "Custom Background" function of WordPress (add_custom_background() ) in my own theme-options page?

Thx for helping!

share|improve this question

You have to include the theme_support in your functions.php Simply add this to your functions.php

share|improve this answer
Thx for your answer, but you misunderstood my question. I am developing a theme with a massive theme options page. There the user should be able to change the background. So Wordpress has this function out-of-the-box - but if I add your snippet, the custom background is available in the appearance menu. But i want the "Custom Background Feature" in a separate Tab in my own "Theme Options" - Page, with its own Menu in the Backend. I hope, you'll understand my (bad) english. ;-) – Markus Schober Nov 14 '11 at 10:08
Puh then you should look what the functions does and maybe load that code into your theme. But I don't see a point in that, except that you have more work to do... Simply put your theme options all in design submenu and you are done?! – Horttcore Nov 14 '11 at 11:05
I would advise against it, it's bad user interface design, it makes all the guides useless, and it's unnecessary work for you ( and complicates your own UI ). To implement this you'll be fighting an uphill battle, and you'll probably have to redo it from scratch in 3.3/3.4 when they change the way options are submitted ( no more POST to options.php ) – Tom J Nowell Nov 14 '11 at 11:44
Will they change the way options are submitted? – Markus Schober Nov 14 '11 at 13:18
@TomJNowell I think you're right. WP has this feature out-of-the-box and i will use it. Maybe they will improve this feature in later version to be more customizable. thx for you thought! – Markus Schober Nov 15 '11 at 7:23

Your Answer


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

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