• 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

Header Image Size Problem

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 › Design Tips and Tricks › Header Image Size Problem

This topic is: resolved

Tagged: Header Image Size Problem

  • This topic has 2 replies, 2 voices, and was last updated 8 years, 6 months ago by chriscomer.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • January 12, 2018 at 9:06 am #215335
    chriscomer
    Member

    I am having issues with importing a new header into my Executive Pro site. I have custom css and php to support a full-width header image of 1140 x 401. Recently when I tried to upload a new header image I ran into errors.

    Using Customizer to change the image when I go to the media library and select an image it suggests an image size of 401 x 1140, not 1140 x 401, I'm not sure if that makes a difference or not but seem odd to me. When I select the image WP pre-selects an area that is 99 x 283 and won't let me change that selection, I can move it but not resize it.
    This code was added a while back to the child theme functions php file.
    // Add support for custom header.
    add_theme_support( 'custom-header', array(
    'flex-height' => true,
    'header-selector' => '.site-title a',
    'header-text' => false,
    'height' => 1140,
    'width' => 401,
    ) );

    And this was added to the style.css file
    /* Header Image Title Area & Site Title
    --------------------------------------------- */
    .header-image .title-area,
    .header-image .site-title,
    .header-image .site-title a {
    float: left;
    margin: 0;
    max-width: 1140px;
    min-height: 401px;
    padding: 0;
    width: 100%;
    }

    This image size has worked for me in the past so I'm not sure what is wrong now. Of note, if I go ahead and install a new image it makes the header on the site completely wonky.

    Any help would be greatly appreciated,
    chris

    http://www.elisacomer.com
    January 12, 2018 at 11:21 am #215338
    emasai
    Participant

    In the functions file the width and height are inverted. Height should be 401 and width 1140.


    Need Website Customization or a Responsive CSS fix? Contact Me
    Lynne emasai.com

    January 12, 2018 at 9:52 pm #215352
    chriscomer
    Member

    Thank you so much! That fixed things. I don't know how many times I have looked at this stuff and missed that.

    Chris

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Header Image Size Problem’ is closed to new replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 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