Get fresh WordPress Content delivered in your inbox with warpspeed!

learn wordpress wplift wordpress rocket

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 ) :

[php]
add_custom_background();
[/php]

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!

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

Comments are closed.

Join 40,000 WordPress Astronauts
AND GET OUR LATEST CONTENT IN YOUR INBOX WITH WARPSPEED

We will never spam you.
close-link
siteground coupon
Get 60% Off the No. 1 WordPress Hosting!