I have a "twenty ten" child theme and I want to disable the Custom Header and Custom Background Support, I added this code to my functions.php but it is not working.
/* Remove theme support for Background and Headers */
function remove_custom_theme_support(){
remove_theme_support('custom-header');
remove_theme_support('custom-background');
}
add_action( 'after_setup_theme', 'remove_custom_theme_support', 11 );
I have also tried
/* Remove theme support for Background and Headers */
function remove_custom_theme_support(){
remove_theme_support('custom-header');
remove_theme_support('custom-background');
}
add_action( 'init', 'remove_custom_theme_support' );
The help says to add it to functions.php
Allows a theme to de-register its support of a certain feature. Should be called in the theme's functions.php file. Generally would be used for child themes to override support from the parent theme.
Any help would be welcomed!
David