[How to] Add a Custom Background to WordPress Theme
This is a quite simple job anyone can do. Many themes now support custom background under theme settings. If yours doesn’t support it, let’s add this support together.
WordPress allow users to change site background, but if your theme didn’t include this feature, then you won’t see Background link under Appearance tab. Here we will enable this feature using
<a href="http://codex.wordpress.org/Function_Reference/add_custom_background">add_custom_background</a> function.
functions.php under your theme folder and add the code below anywhere you like:
Now, save the file and upload it to your server.
Your theme will show that link under appearance section after you visit admin section. (Yeah, It’s that easy.)
After you upload an image there you will also see background alignment, repeat and scroll options to set it up exactly as you want. WordPress handles all the CSS code for you!
Deal Notice: We are using A2 hosting for all of our websites, and we are really happy with their service. So we wanted to share you this discount link for you to try it out. If you get a hosting using this link, you will also help us build better content for you: SSD Hosting - 300% Faster Than Standard Hard Drives