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  anitac 11 months, 1 week 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

    anitac
    Participant
    Post count: 6991

    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.


    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me! | Plus Me!
    When asking for help, please provide a link or screen shot showing your problem!

    • This reply was modified 11 months, 1 week ago by  anitac. Reason: added NOT
    • This reply was modified 11 months, 1 week ago by  anitac. 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

    anitac
    Participant
    Post count: 6991

    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 ) );


    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me! | Plus Me!
    When asking for help, please provide a link or screen shot showing your problem!

    • This reply was modified 11 months, 1 week ago by  anitac.
    • This reply was modified 11 months, 1 week ago by  anitac.
    #57291

    anitac
    Participant
    Post count: 6991

    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.


    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me! | Plus Me!
    When asking for help, please provide a link or screen shot showing your problem!

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

You must be logged in to reply to this topic.