Permalink
Browse files

Switch to the newer WordPress 'custom-background' theme feature.

  • Loading branch information...
1 parent 77946c0 commit 11a27cea0f22be7b4196655f9629e0f7e761fc42 @justintadlock committed Aug 24, 2012
Showing with 9 additions and 3 deletions.
  1. +8 −1 functions.php
  2. +1 −1 style.css
  3. +0 −1 style.dev.css
View
@@ -66,7 +66,14 @@ function retro_fitted_theme_setup() {
/* Add theme support for WordPress features. */
add_theme_support( 'automatic-feed-links' );
- add_custom_background();
+
+ /* Add support for a custom background. */
+ add_theme_support(
+ 'custom-background',
+ array(
+ 'default-image' => trailingslashit( get_template_directory_uri() ) . 'images/bg.jpg',
+ )
+ );
/* Filter the breadcrumb trail arguments. */
add_filter( 'breadcrumb_trail_args', 'retro_fitted_breadcrumb_trail_args' );
Oops, something went wrong.

0 comments on commit 11a27ce

Please sign in to comment.