[wp-trac] [WordPress Trac] #14899: Remove Theme Support not Working
WordPress Trac
wp-trac at lists.automattic.com
Sun Sep 19 17:04:38 UTC 2010
#14899: Remove Theme Support not Working
--------------------------+-------------------------------------------------
Reporter: adeptris | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.1
Severity: normal | Keywords: remove theme support,twenty ten,child theme
--------------------------+-------------------------------------------------
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.
I have tried the following in the Child Theme function.php
{{{
/* 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' );
}}}
I have tried Google and Codex, is this a know bug. or my code?
Codex says!
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.
David
David
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14899>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list