• 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

Parallax Pro Header Images on Pages Height

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 › Parallax Pro Header Images on Pages Height

This topic is: not resolved
  • This topic has 3 replies, 2 voices, and was last updated 11 years, 2 months ago by blogjunkie.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • July 31, 2015 at 3:39 pm #161100
    FoxyMarmalade
    Member

    I've used the code shown below that I found in a thread here to add full width header images to my pages and they're showing up, but they're huge! Is there a way to reduce the height? I've tried changing the 9999 and 250 numbers to different values and haven't had any success. And somehow related to this is after I added the code, the first featured image on the home page is disappearing on the mobile version - is that common? And is there a way I can correct that?

    Here's the link to the site I'm working on: http://kelli.kellispencer.com/

    add_image_size( 'header-img', 9999, 250, TRUE );
    add_action('genesis_after_header', 'site_banner', 25);
    function site_banner(){  
      if( !is_singular('page') )
         return;
    
      if( has_post_thumbnail() && is_page() ) :
       $ftbanner = wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ), 'header-img' );
       $banner = $ftbanner[0];
        echo '<div id="site-banner" class="site-banner">' . "\n";
        echo '<img src="' . $banner . '">' . "\n";
        echo '</div>' . "\n";
      endif;
    }
    July 31, 2015 at 4:20 pm #161103
    FoxyMarmalade
    Member

    Admin, will you delete? I should have posted this question in the design tips section.

    July 31, 2015 at 9:11 pm #161112
    blogjunkie
    Participant

    add_image_size( 'header-img', 9999, 250, TRUE );

    This code registers an image 9999 px wide and 250 px tall. Adjust the figures to your requirements. However this only registers the image size - existing images won't automatically be cropped to that size. You need to install and run the Regenerate Thumbnails plugin – that will now create the image sizes you need. Hope that helps!


    WordPress evangelist, Nike runner, Apple fanboy.
    Work: ClickWP WordPress Support, Play: adventures of a blogjunkie. Talk to me on Twitter @blogjunkie

    July 31, 2015 at 9:12 pm #161113
    blogjunkie
    Participant

    Also 9999px is way too wide. Try 1200px instead.


    WordPress evangelist, Nike runner, Apple fanboy.
    Work: ClickWP WordPress Support, Play: adventures of a blogjunkie. Talk to me on Twitter @blogjunkie

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 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

© 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