Community Forums › Forums › Archived Forums › General Discussion › Where does Executive Pro store link to header image?
Tagged: executive pro, header image
- This topic has 5 replies, 2 voices, and was last updated 5 years, 3 months ago by
MikeKirkland.
-
AuthorPosts
-
February 10, 2018 at 11:16 pm #216412
MikeKirkland
MemberCan someone explain where Executive Pro stores the reference to the header image file?
I'm trying to experiment with wider images. Some other child themes offer an option to skip the cropping, but Executive Pro doesn't. I can play tricks with file names, but I would prefer to do something that's a little more maintainable.
Thanks
February 10, 2018 at 11:41 pm #216413Victor Font
ModeratorYou can skip cropping in any theme. Open functions.php and look for the the following code:
// Add support for custom header. add_theme_support( 'custom-header', array( 'flex-height' => true, 'header-selector' => '.site-title a', 'header-text' => false, 'height' => 200, 'width' => 520, ) );
Change it to add flex-width to the array along with flex-height. The next time you upload a header image, you'll have the option to skip cropping.
// Add support for custom header. add_theme_support( 'custom-header', array( 'flex-height' => true, 'flex-width' => true, 'header-selector' => '.site-title a', 'header-text' => false, 'height' => 200, 'width' => 520, ) );
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?February 11, 2018 at 12:15 pm #216438MikeKirkland
MemberThank you. Editing functions.php got me partway there, but the max-width and min-height in the CSS still caused problems. I don't know if what I did was the best way to fix it, but I modified from line 1200 in style.css as follows:
Old -
.header-image .title-area,
.header-image .site-title,
.header-image .site-title a {
background-size: contain !important;
float: left;
margin: 0;
max-width: 260px;
min-height: 100px;
padding: 0;
width: 100%;
}New -
.header-image .title-area,
.header-image .site-title,
.header-image .site-title a {
background-size: contain !important;
float: left;
margin: 0;
max-width: 100%;
min-height: 200px;
padding: 0;
width: 100%;
}Realizing that there is still a lot to do to get my site up-to-date which probably includes more child theme evaluation and changes, pushed me to download the latest version of the Genesis Framework Beginner's Guide. It also makes me wonder if I'm remembering a tool or just dreaming. Is there a plugin that shows onscreen which things within WordPress or Genesis are responsible for the results on screen? Kind of a box model like browser developer tools but related to WordPress?
February 11, 2018 at 12:27 pm #216441Victor Font
ModeratorWhat you're seeking may be your browser's built-in inspection tool: https://victorfont.com/how-to-use-your-browsers-inspect-tool/
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?February 11, 2018 at 1:02 pm #216451MikeKirkland
MemberPerhaps that's all I used before. Your article is a good reminder.
February 11, 2018 at 1:36 pm #216452MikeKirkland
MemberI created a new header image is now 1400x200. (I didn't really want it that big, but it was easier to just adjust the image file to go along with how Executive Pro laid out the page). I confirmed that it's the same height on the site as in my graphics editor. However:
The title-area div shows 1140x200, which probably explains why there is an empty area below the image above the menu.
Then I created a new header image 1140x200. This displays without a gap above the menu when the browser window is wider than 1140. But as the screen size is adjusted to see how Responsive works, the gap appears as the browser window narrows. The gap appears to be roughly the same height until the screen size is smartphone size and then the gap is taller. The effect is similar when using the icons in the Customize window.
So I guess I still don't understand what's going on, and I obviously don't understand Responsive.
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.