How To: Enable Custom Backgrounds in Your WordPress Theme

The other day we looked at how to enable the custom header image feature in your WordPress themes, that was a new feature in WordPress 3.0. Another feature is allowing people to upload custom backgrounds for their theme. Another nice touch with gives the end user a bit more control over how their site looks. This one is really easy to add …

The Code

Add the following code to your theme’s functions.php file ( create one if it doesn’t exist ) :


Adding The Background Image

Once you have done that you will see a new menu option under the “Appearance” menu in your WordPress admin, called “Background” click that and you can upload your background image file. Once its uploaded you are presented with various options to position it left, right and center. You can also set the tiling options and choose a background color:

There you have it – make sure you include this easy option in your next WordPress theme.



Oliver Dale is the founder of Kooc Media, An Internet Company based in Manchester, UK. I founded WPLift and ThemeFurnace, find out more on my Personal Blog. Thanks!

Related Articles


3 thoughts on “How To: Enable Custom Backgrounds in Your WordPress Theme”

Comments are closed.


Create Your Own

Building beautiful WordPress websites has never been easier. Explore the visual drag & drop Theme Builder that does it all, and works on any theme. Coding skills needed: none.