change header size in 2010_child theme
-
I studied and studied codex about child theme and understood, that to change the header size I need first to change the header.php and specify the exact size instead of
"<?php echo HEADER_IMAGE_WIDTH; ?>" "<?php echo HEADER_IMAGE_HEIGHT; ?>"
and put it in the child theme directory.Then I should create in the child theme directory a new fuctions.php file confirming this new size like this
if ( ! function_exists( 'twentyten_setup' ) ): function twentyten_setup() { define( 'HEADER_IMAGE_WIDTH', apply_filters( 'twentyten_header_image_width', 940 ) ); define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'twentyten_header_image_height', 614 ) ); } endif;
But that did not work.
Kindly explain what I did wrong.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘change header size in 2010_child theme’ is closed to new replies.