You can use a child theme to do this. I recommend using Firebug for CSS work–makes it much easier.
Style.css line 670 is where a max height gets defined in the stylesheet. You can set a new max-height on the image in your child theme’s style.css.
You also need to create a new functions.php file in your child theme and filter the width/height on the custom header. Look in the theme’s /inc/custom-header.php file to see how the custom header’s default arguments are defined. Then add a filter to your child theme’s functions.php like so:
/**
* Change default custom header size
*/
function spun_custom_header_args( $args ) {
$args = array(
'width' => 200,
'height' => 200,
);
return $args;
}
add_filter( 'spun_custom_header_args', 'spun_custom_header_args', 999 );
Untested, but this gives you an idea of where to start.
I also want to change the header image.
In this theme its 150×150 and i want to put an image that has 200×400
I have a Child Theme to do my changes, but i don’t know how to change the image header.
What i have to do?
I have to create my own custom-header.php and change these lines:
function spun_custom_header_args( $args ) {
$args = array(
'width' => 200,
'height' => 200,
);
return $args;
}
add_filter( 'spun_custom_header_args', 'spun_custom_header_args', 999 );
Or I have to create a file called functions.php i put the same lines there
How to call from the main css spun-child.css to functions that are in function.php?
You add the above code to a new file, functions.php, in your child theme. You don’t need to worry about calling it from the stylesheet, WordPress automatically does that because it’s part of the child theme.
If you have further questions, please post a new topic, as this one has been resolved. Thanks.
Was this ever fixed? Im having the same issue.
The only need is to change the size you want at …/theme/spun/inc/custom-header.php
function spun_custom_header_setup() {
$args = array(
‘default-image’ => ”,
‘default-text-color’ => ‘999’,
‘width’ => 500, <==========here
‘height’ => 200, <==========here
Cheers,
Hi there,
I have created a child theme, installed the style.css and the new functions.php following the instructions – however, I still get a crop box when uploading my theme that is smaller than my new dimensions:
my logo is 280×40
I made the functions.php 300×50
I made the #masthead max size 400
BUT the crop box is showing as being 240×40.
Any help with this would be appreciated, thanks