• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Where does Executive Pro store link to header image?

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Where does Executive Pro store link to header image?

This topic is: not resolved

Tagged: executive pro, header image

  • This topic has 5 replies, 2 voices, and was last updated 5 years, 7 months ago by MikeKirkland.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • February 10, 2018 at 11:16 pm #216412
    MikeKirkland
    Member

    Can 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 #216413
    Victor Font
    Moderator

    You 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 #216438
    MikeKirkland
    Member

    Thank 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 #216441
    Victor Font
    Moderator

    What 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 #216451
    MikeKirkland
    Member

    Perhaps that's all I used before. Your article is a good reminder.

    February 11, 2018 at 1:36 pm #216452
    MikeKirkland
    Member

    I 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.

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble