Changeset 20973 for trunk/wp-content/themes/twentyeleven/functions.php
- Timestamp:
- 06/01/2012 08:31:50 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyeleven/functions.php
r20471 r20973 98 98 add_theme_support( 'post-formats', array( 'aside', 'link', 'gallery', 'status', 'quote', 'image' ) ); 99 99 100 $theme_options = twentyeleven_get_theme_options(); 101 if ( 'dark' == $theme_options['color_scheme'] ) 102 $default_background_color = '1d1d1d'; 103 else 104 $default_background_color = 'f1f1f1'; 105 100 106 // Add support for custom backgrounds. 101 add_theme_support( 'custom-background' ); 107 add_theme_support( 'custom-background', array( 108 // Let WordPress know what our default background color is. 109 // This is dependent on our current color scheme. 110 'default-color' => $default_background_color, 111 ) ); 102 112 103 113 // This theme uses Featured Images (also known as post thumbnails) for per-post/per-page Custom Header images
Note: See TracChangeset
for help on using the changeset viewer.