Community Forums › Forums › Archived Forums › General Discussion › Added header image to Genesis sample child theme, but not showing full logo
- This topic has 4 replies, 4 voices, and was last updated 10 years ago by
sebastienserre.
-
AuthorPosts
-
April 16, 2016 at 10:19 pm #183760
angiehull
MemberI followed instructions sent to me to add a custom header image to the Genesis sample theme, making sure that the dimensions of my logo match the dimensions in the code exactly, yet I am still asked to crop the image when saving to the media library. I have saved the image as logo.png as required. Hours spent on this - very frustrating! Can anyone help please? I have taken screen shots but cannot add them here. Site not live so can't provide URL.
April 17, 2016 at 1:15 am #183762Andykev
ParticipantDon't know what "instructions sent" mean...but did you add the image dimensions to your functions.php file?
Something like this://* Add support for custom header add_theme_support( 'custom-header', array( 'flex-height' => true, 'width' => 960, 'height' => 200, 'header-selector' => '.site-title a', 'header-text' => false, ) );You change the "width" and "height" to match the size of the image you have made for your header. So in my example, I have a full width header image. You can make it what you want.
April 17, 2016 at 11:00 pm #183805angiehull
MemberThank you @Andykev, the "instructions sent" refers to an earlier enquiry of mine and pointed me to http://wpbeaches.com/add-custom-header-image-genesis-sample-theme/ which I followed exactly (I think). But I see that your example code has an additional line at the end 'header-text' => false, so perhaps this is the cause of the problem. What do you think? Initially I had a larger image so changed the height and width as you suggest, but that didn't work either. Might try to add in the additional line about the header-text and see what happens. If you follow the link you will see that it "recommends" parameters but that the 'flex-height' => true, and 'flex-width' => true, should override the recommended size anyway. It doesn't seem to.
April 18, 2016 at 8:11 am #183829Christoph
MemberHi,
when you add a new header image, it always says "Select and Crop".
After you click on the button, you should see the image overlayed with a rectangle showing the area that will be visible.
http://screencast.com/t/qN3R0ZJXxpCEIf the image is bigger than the area, you can select the area you want to show and crop it.
If it fits right into the area, just click skip cropping.
April 20, 2016 at 9:24 am #183990sebastienserre
MemberHello,
What's new?
i have a similar problem... but pictures as logo isn't shown.... any idea?https://www.dropbox.com/s/oyw9m3k0pr8c16t/genesis-logo.jpg?dl=0
Thx
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.