I am trying to add theme support for custom background using the following code in functions.php file:
function supp_custom_bg() {
$defaults = array(
'default-color' => '',
'default-image' => '',
'wp-head-callback' => '_custom_background_cb',
'admin-head-callback' => '',
'admin-preview-callback' => ''
);
add_theme_support( 'custom-background', $defaults );
}
add_action( 'after_setup_theme', 'supp_custom_bg', 20 );
and the options now are activated in the customizer but no effect on the theme.
Note: The wp_head
is added to the <head>
tag