I understand that, in order to change the header height, I need to change 2 area of the functions.php.
// This theme allows users to set a custom header image
define('HEADER_TEXTCOLOR', '444');
define('HEADER_IMAGE_WIDTH', 980); // use width and height appropriate for your theme
define('HEADER_IMAGE_HEIGHT', 250);
// gets included in the site header
function codium_extend_header_style() {
if (get_header_image() != ''){
?><style type="text/css">
div#header {
background: url(<?php header_image(); ?>); height :230px; -moz-border-radius-topleft:6px;border-top-left-radius:6px;-moz-border-radius-topright:6px;border-top-right-radius:6px;
}
<?php if ( 'blank' == get_header_textcolor() ) { ?>
h1.blogtitle,.description { display: none; }
<?php } else { ?>
h1.blogtitle a,.description { color:#<?php header_textcolor() ?>; }
<?php
} ?>
</style><?php
}
}
When I try to upload the new functions.php to my child theme folder on teh server, however, I get a fatal error:
Fatal error: Cannot redeclare codium_extend_header_style() (previously declared in /home/content/42/8667842/html/wp-content/themes/everyday/functions.php:10) in /home/content/42/8667842/html/wp-content/themes/codium-extend/functions.php on line 33
I have created a separete functions.php with only this:
<?php
// This theme allows users to set a custom header image
define('HEADER_TEXTCOLOR', '444');
define('HEADER_IMAGE_WIDTH', 980); // use width and height appropriate for your theme
define('HEADER_IMAGE_HEIGHT', 220);
// gets included in the site header
function codium_extend_header_style() {
if (get_header_image() != ''){
?><style type="text/css">
div#header {
background: url(<?php header_image(); ?>); height :215px; -moz-border-radius-topleft:6px;border-top-left-radius:6px;-moz-border-radius-topright:6px;border-top-right-radius:6px;
}
<?php if ( 'blank' == get_header_textcolor() ) { ?>
h1.blogtitle,.description { display: none; }
<?php } else { ?>
h1.blogtitle a,.description { color:#<?php header_textcolor() ?>; }
<?php
} ?>
</style><?php
}
}
?>
What am I doing wrong??
Thanks.