• Resolved Zhou

    (@zhouhao)


    Hey guys,

    I’m using 2010 Weaver theme. Apparently if i were to upload an image to use as header, they say if you upload an image of 900 x 200 there is no need to crop. I know I can change the width restriction by changing the width under 2010 weaver main options. However how do I change the height restrictions? I do not wish to crop the image in wp as i cant get the desired display.

    So I just wanna increase the height restriction so my header image doesnt appear squashed. Thanks a lot for the help.

    Site at http://liferature.com

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Zhou

    (@zhouhao)

    solved thanks

    Hey Zhou, you should be able to change the image height in the 2010-functions.php file in the Weaver theme folder. Look for the declaration of the header width and height in there:

    // The height and width of your custom header. You can hook into the theme's own filters to change these values.
    	// Add a filter to twentyten_header_image_width and twentyten_header_image_height to change these values.
    	define( 'HEADER_IMAGE_WIDTH', apply_filters( 'twentyten_header_image_width', 940 ) );
    	define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'twentyten_header_image_height', 198 ) );

    By changing the header_image_height to something different to 198 you can control the height of the image as that theme does not have a dashboard setting, although as you say it does have one for the image width.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Header Image Size Restrictions’ is closed to new replies.