Allow the various header constants to be redefined in Twenty Ten. see #14903.
git-svn-id: https://develop.svn.wordpress.org/trunk@16675 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8ca2300955
commit
4c0ef1e0ba
|
@ -104,8 +104,11 @@ function twentyten_setup() {
|
|||
add_custom_background();
|
||||
|
||||
// Your changeable header business starts here
|
||||
if ( ! defined( 'HEADER_TEXTCOLOR' ) )
|
||||
define( 'HEADER_TEXTCOLOR', '' );
|
||||
|
||||
// No CSS, just IMG call. The %s is a placeholder for the theme template directory URI.
|
||||
if ( ! defined( 'HEADER_IMAGE' ) )
|
||||
define( 'HEADER_IMAGE', '%s/images/headers/path.jpg' );
|
||||
|
||||
// The height and width of your custom header. You can hook into the theme's own filters to change these values.
|
||||
|
@ -119,6 +122,7 @@ function twentyten_setup() {
|
|||
set_post_thumbnail_size( HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT, true );
|
||||
|
||||
// Don't support text inside the header image.
|
||||
if ( ! defined( 'NO_HEADER_TEXT' ) )
|
||||
define( 'NO_HEADER_TEXT', true );
|
||||
|
||||
// Add a way for the custom header to be styled in the admin panel that controls
|
||||
|
|
Loading…
Reference in New Issue