• Resolved rracanel517

    (@rracanel517)


    Hey Caroline,

    Thanks for making such a great theme! I’m trying to make my custom header larger. Right now the max is 150X150. Is there a way to change this in the stylesheet or anywhere else? It’s a little too small right now. I’ve tried a few things and it isn’t working..

    If that’s not possible, any other suggestions?

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Theme Author Caroline Moore

    (@sixhours)

    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.

    Thread Starter rracanel517

    (@rracanel517)

    Thanks so much!

    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?

    Theme Author Caroline Moore

    (@sixhours)

    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.

    kmpaperie

    (@kmpaperie)

    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

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Make header larger’ is closed to new replies.