• 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

Different Headers & Different Sizes for Different Pages

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 › Different Headers & Different Sizes for Different Pages

This topic is: resolved

Tagged: css, different, Headers

  • This topic has 7 replies, 4 voices, and was last updated 13 years, 3 months ago by moxiegirl.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • February 13, 2013 at 6:48 pm #20190
    moxiegirl
    Member

    Or the post that could have been titled Diff'rent Strokes?ย 

    Working on Prose Theme and I would like a header on the Home page to be 940 x 656.

    On all the other pages I would like a header image to be 940 x 129.

    Your help would be divine in accomplishing this ๐Ÿ™‚ Muchas gracias!

     

    February 13, 2013 at 7:52 pm #20200
    asdweb
    Member

    You can do this with the style sheet.

    Post a link to your site so we can see what may need to be changed.


    Amy Susan Design.com @AmySusanDesign

    February 13, 2013 at 8:49 pm #20209
    moxiegirl
    Member

    I'm working it offline so it's not live right now.

    February 14, 2013 at 12:20 am #20236
    Tony @ AlphaBlossom
    Member

    Hello,

    It's hard to say exactly which is the best way without seeing your site, but you can set your background image for all pages, probably:


    #header {
    background-image: ~ your image here
    background-repeat: no-repeat;
    background-position: center center;
    height: 129px;
    }

    Then for your home page:

    .home #header {
    background-image: ~ larger image here;
    height: 656px;
    }

    The .home #header will work on the home page only. That's very rough since I can't see what's going on, but it should be enough to get you going.


    Tony Eppright | http://www.AlphaBlossom.com | Follow me on twitter @_alphablossom

    February 14, 2013 at 8:16 pm #20441
    moxiegirl
    Member

    Okay, I published the website and that didn't exactly work (so that isn't live).

    Website isย http://www.mupplebee.com/

    When I used the code provided, it used the larger image, and cropped it to the smaller image's height. Also the part about signing up for my newsletter then went and cramped over to the right hand side of the pink area.

    Thanks for your help, I do appreciate it

    February 14, 2013 at 8:30 pm #20445
    Tony @ AlphaBlossom
    Member

    You'll need two different css rules, one for the home header, and one for the rest of the headers.

    So it should be:


    #header {
    max-width: 940px;
    margin: 0 auto;
    width: 100%;
    height: 150px;
    background: url("http://www.mupplebee.com/wp-content/uploads/2013/02/SHORTERIMAGE.png") no-repeat scroll 0 0 transparent;
    }


    .home #header {
    height: 656px;
    background: url("http://www.mupplebee.com/wp-content/uploads/2013/02/WebsiteHeader.png") no-repeat scroll 0 0 transparent;
    }

    You may need to add !important at the end of one or both of the .home #header rules (before the semicolon). That should do what you need.

    The newsletter is outside of the header, so it should be affected...hard to tell without seeing it ๐Ÿ™‚


    Tony Eppright | http://www.AlphaBlossom.com | Follow me on twitter @_alphablossom

    February 15, 2013 at 2:17 am #20481
    Brad Dalton
    Participant

    CSS would be the best way to go however you could also use conditional tags for this but you might need to add code for flexible header heights or it might resize them. http://codex.wordpress.org/Custom_Headers

    $args = array(
    	'flex-width'    => false,
    	'width'         => 940,
    	'flex-height'    => true,
    	'height'        => 100,
    	'default-image' => get_template_directory_uri() . '/images/header.jpg',
    );
    add_theme_support( 'custom-header', $args );
    

    Then you can add the different headers with conditionals

    <?php if (is_home() ) { ?>
    <div><a href="http://domain.com/wp-content/uploads/2013/02//header-large.png" width="940" height="656" /></a></div>
    <?php } ?>
    
    <?php if (!is_home() ) { ?>
    <div><a href="http://domain.com/wp-content/uploads/2013/02//header-small.png" width="940" height="100" /></a></div>
    <?php } ?>
    

    You could add this to a custom function or using the SImple Hooks plugin

    You might also need to edit the default height in the child themes style.css file.

    There's also a plugin named wp display headerthat may work for you.


    Tutorials for StudioPress Themes.

    February 15, 2013 at 10:23 am #20518
    moxiegirl
    Member

    Yes! Got it with the CSS.

    At first it still wasn't working until I remembered to changed the default header to the smaller image (as it is on all the pages except the home page). Then I went in to change the default height as well to the height of the smaller image.ย 

    Thank you!!! This community rocks!

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘Design Tips and Tricks’ 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