The WordPress custom background feature allows you to change the background to a different color or use an image for your background through the Dashboard. The Twenty Ten WordPress theme is packaged with the custom background feature, but you can add this feature to any theme with just a few lines of code. Follow these steps:
From the Dashboard, choose Appearance→Background.
The Edit Themes page appears.
Click the Theme Functions (functions.php) template on the right side of the page.
The Theme Functions template opens in the text editor in the middle of the page.
Add the following line of code to the Theme Functions template before the closing ?> tag:
add_custom_background();
This line of code tells WordPress that your theme has added the custom background feature.
Click the Save File button.
The Theme Functions template is saved, along with your changes. The Background link now displays below the Appearance menu in your Dashboard. Use this Background link to change the background for your site.
dummies
Source:http://www.dummies.com/how-to/content/add-a-custom-background-feature-to-a-wordpress-the.html
No comments:
Post a Comment