WordPress.org

Ready to get started?Download WordPress

Forums

Uploaded Custom Header Image wants to be cropped short (5 posts)

  1. Jack.Ferrell
    Member
    Posted 3 years ago #

    I am setting up a WordPress Blog. When I upload my custom image for the header, the image appears with a crop box. This box is about 15% shorter in width than the image and I can't expand the width of the crop box. WP says it can accept 940 x 198 px images.

    I have uploaded different sized images - same results each time.
    I have tried several other templates - again, the exact same results.

    What do I need to do? This should be a no brainer.

    Thanks, Jack

  2. alchymyth
    Forum Moderator
    Posted 3 years ago #

    I have tried several other templates - again, the exact same results.

    that is probably chance, as the header image size is set by the theme.

    (940 * 198 px) is the header image size of Twenty Ten, and you may have picked themes that were based on that default theme.

    you can most likely change these values in funtions.php of the theme.

  3. Jack.Ferrell
    Member
    Posted 3 years ago #

    Thanks Alchymyth! This WP and coding is new to me. Correct Twenty Ten was the first template I tried. I have Weaver now. How do I get to the values in funtions.php? I went to Appearance / Editor, yet didn't see the code there.

  4. alchymyth
    Forum Moderator
    Posted 3 years ago #

    i don't know for 'weaver', but 'appearance' 'editor' it the right place - select the theme you are working with from the list; ten select the template 'functons.php' from the list on the right.

    the header size code in twenty ten is:

    define( 'HEADER_IMAGE_WIDTH', apply_filters( 'twentyten_header_image_width', 940 ) );
    	define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'twentyten_header_image_height', 198 ) );

    'weaver' might have options in the dashboard ...

  5. kitpksiri
    Member
    Posted 3 years ago #

    I have the same problem. It happens with all themes. Seems like the cropping mask always keeps the same proportion once it reaches the max height, the width cannot be increased.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.