• Blog

    Latest from our Blog

  • Tools

    Our Favourite WP Tools

  • Hosting

    Recommended Web Hosts

  • Coupons

    Get great money off deals

  • Themes

    WordPress Theme Directory

  • Plugins

    WordPress Plugins Directory

  • Promote

    Your WordPress Product

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.


Disclosure: This page may contain affiliate links for which we will receive compensation if a purchase is made via the link.

Author:

Oliver Dale is the founder of Kooc Media, a small internet company based in the UK. Kooc Media runs several high-profile websites including WPLift, ThemeFurnace and DesignersTalk.

Leave Yours +

3 Comments

  1. Nobody told me it would be that easy. I’ll have to give it a try!

  2. Cms

    Blast from the past… Slow day?

  3. I can use CSS custom background. I don’t like this tips.
    But thanks for share.

  • Comments are Closed

Search

Our Sponsors