Custom Header must be cropped even when correct size

Community Forums Forums General Discussion Custom Header must be cropped even when correct size

This topic is: not resolved

This topic contains 4 replies, has 2 voices, and was last updated by  AC 1 year, 3 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #57285

    sgarson
    Participant
    Post count: 1

    When I try to add my header image, even though it is the correct size, I am forced to crop the image. The result is an oversized and pixelated image. CSS file as the image default width as 495 pixels. If I import an image with only 100 pixel width, I still am forced to crop it, so you can imagine how bad it looks. On the header screen, it says if the image imported is 495 x 145 pixels, it will be used as is and not be cropped, but this is not the case.

    How can I figure out what is wrong? Using Genesis 2.0.0, Minimum Child Theme 2.0.1

    Steve Garson
    Boston, MA

    http://networksolutionexperts.com
    #57286

    AC
    Blocked
    Post count: 7712

    Open up your functions.php file. Look for custom header in there. Change the measurements in there to your logo’s measurements. Save it. Then go back and upload it again. It should NOT ask you to crop it.

    • This reply was modified 1 year, 3 months ago by  AC. Reason: added NOT
    • This reply was modified 1 year, 3 months ago by  AC. Reason: added NOT
    #57288

    sgarson
    Participant
    Post count: 1

    This is the code that is in the functions.php file. No matter what size image I import, I am forced to crop the width by 50%. I am using a file that is 495×145. If I use a file 100×15, I still need to crop half the width,

    /** Add support for custom header */
    add_theme_support( ‘genesis-custom-header’, array(
    ‘width’ => 495,
    ‘height’ => 145
    ) );

    #57289

    AC
    Blocked
    Post count: 7712

    Copy and paste my code REPLACING your code. Tell me if it works.

    EDITED THIS!!!

    add_theme_support( ‘genesis-custom-header’, array( ‘width’ => 960, ‘height’ => 200 ) );

    • This reply was modified 1 year, 3 months ago by  AC.
    • This reply was modified 1 year, 3 months ago by  AC.
    #57291

    AC
    Blocked
    Post count: 7712

    Dang it… this thing is stripping code!!!

    Use Brad’s instructions here – https://gist.github.com/braddalton/5594613.

    Replace your old code with his code.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.