• 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

Shorten header area on Cafe Pro Theme

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 › Shorten header area on Cafe Pro Theme

This topic is: not resolved

Tagged: cafe pro, header

  • This topic has 6 replies, 3 voices, and was last updated 11 years ago by jmrallen.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • April 15, 2015 at 2:27 pm #148044
    CJWheels
    Member

    I know this has got to be an easy one, but I'm just not finding it. All I want to do is shorten the first area around the logo. Make it maybe 400 pixels high instead of the whole page. Any thoughts?

    http://themetest.howtorockyourblog.com/

    Thanks
    Cyn

    http://themetest.howtorockyourblog.com/
    April 15, 2015 at 2:59 pm #148045
    jonkenney
    Member

    Cyn,
    You can try adding this into your custom CSS section to see if it works.

    header.site-header.front-page-header {
        height: 400px;
    }
    April 15, 2015 at 3:09 pm #148047
    CJWheels
    Member

    Hey Jon, I tried that...did not work. I think it's something in a js file, but I can't figure out how to change it.

    Cyn

    April 15, 2015 at 3:20 pm #148049
    CJWheels
    Member

    And...I got it. Remove this section:
    // Header Height
    var navHeight = $('.nav-primary').outerHeight();
    var snavHeight = $('.nav-secondary').outerHeight();
    var beforeheaderHeight = $('.before-header').outerHeight();
    var windowHeight = $(window).height();
    var newHeight = windowHeight - navHeight - snavHeight - beforeheaderHeight;

    $('.front-page-header') .css({'height': newHeight +'px'});
    $('.image-section') .css({'height': windowHeight +'px'});

    $(window).resize(function(){

    var navHeight = $('.nav-primary').outerHeight();
    var snavHeight = $('.nav-secondary').outerHeight();
    var beforeheaderHeight = $('.before-header').outerHeight();
    var windowHeight = $(window).height();
    var newHeight = windowHeight - navHeight - snavHeight - beforeheaderHeight;

    $('.front-page-header') .css({'height': newHeight +'px'});
    $('.image-section') .css({'height': windowHeight +'px'});

    });

    From the home.js in your js folder. Done.

    Cyn

    April 15, 2015 at 3:23 pm #148050
    jonkenney
    Member

    Cyn,
    Try removing the "header" from the previous post.

    .site-header.front-page-header {
        height: 400px;
    }

    Jon

    April 15, 2015 at 3:23 pm #148051
    jonkenney
    Member

    Nice!

    April 19, 2015 at 4:51 pm #148470
    jmrallen
    Member

    Great sleuthing. This just seems to affect the homepage, though. Have you managed to find any areas in CSS or the .js files where you can shorten the height of the header in all interior and/or stand-alone pages? I'm trying to have the header/background image be shorter across the board, not just on the homepage.

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