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 …
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.
Disclosure: This page may contain affiliate links for which we will receive compensation if a purchase is made via the link.