To make it easier to select a background color from a color picker in the customizer, add this to your functions.php file.
//* Add support for custom background add_theme_support( 'custom-background', array( 'wp-head-callback' => 'themename_background_callback' ) ); //* Add custom background callback for background color function themename_background_callback() { if ( ! get_background_color() ) return; printf( '' . "\n", get_background_color() ); }
Be sure to backup your file first and have access to cpanel or ftp!
Leave a Reply