Viewing 5 replies - 16 through 20 (of 20 total)
  • Theme Author gamerpotion

    (@gamerpotion)

    in the functions, try to change

    // Support flexible height and width.
                    'flex-height'            => false,
                    'flex-width'             => false,

    into

    // Support flexible height and width.
                    'flex-height'            => true,
                    'flex-width'             => true,

    Also did you re-upload the logo in Header section?

    Still doesn’t seem to work, WordPress constantly forces me to crop thie image.

    Theme Author gamerpotion

    (@gamerpotion)

    Sorry for the late response.

    Ok Ive gone and tested it using your logo, try this, it should work now hopefully.

    empty your functions.php file and replace it all with:-

    <?php
    
    function newgamerchild_custom_header_setup() {
    	$args = array(
    
    		// Set height and width, with a maximum value for the width.
    		'height'                 => 82,
    		'width'                  => 610,
    		'max-width'              => 610,
                    'header-text'            => false,
    
    		// Support flexible height and width.
    		'flex-height'            => true,
    		'flex-width'             => true,
    
    		// Random image rotation off by default.
    		'random-default'         => false,
    
    	        'uploads'                => true,
    	        'wp-head-callback'       => '',
    	        'admin-head-callback'    => '',
    	        'admin-preview-callback' => '',
    	);
    
    	add_theme_support( 'custom-header', $args );
    }
    add_action( 'after_setup_theme', 'newgamerchild_custom_header_setup' );
    
    ?>

    seems Andrew was on the right path, but code was missing the `add_theme_support( ‘custom-header’, $args );’

    Hopefully this should work now and allow you to resize to your desired size.

    Also for future reference, to make sure all is working – in the Header section it should always show the dimensions of the new values. Just look where it says “Select Image” and it should say “Images of exactly 610 × 82 pixels will be used as-is.”

    Thank you very much, now it works perfectly ??

    Theme Author gamerpotion

    (@gamerpotion)

    Good to hear that ?? Marking as resolved.

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘header image size is too small’ is closed to new replies.