...

How to Enable Custom Background in WordPress 3.0 Themes

183

WordPress 3.0 introduces a new feature called custom backgrounds for WordPress themes. This feature will give the user an ability to add custom backgrounds to their site which will give their blogs/sites a unique touch. Even though this feature is added to the core, it will only be activated if your theme supports it. In this article, we will show you how you can enable Custom Background in WordPress themes for WordPress 3.0.

Note: This article is intermediate level article focused specially for theme designers.

Update: the code used in the video add_custom_background is depracated. Look at the code below in this article.

Video:

Text-tutorial

Simply open your functions.php file and add the following line:

add_theme_support('custom-background');

Then under appearance you should be able to see an option for Custom backgrounds.

The default twenty ten theme for WordPress 3.0 already has this feature enabled in it.

Seraphinite AcceleratorOptimized by Seraphinite Accelerator
Turns on site high speed to be attractive for people and search engines.