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 ) :
add_custom_background();
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.


4 Comments
Nobody told me it would be that easy. I’ll have to give it a try!
Hi
Good work. you describe it very well and i will try this
Thanks
Blast from the past… Slow day?
Leave a Reply