• 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

Consistent header height all pages CAFE PRO

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 › Consistent header height all pages CAFE PRO

This topic is: not resolved

Tagged: Cafe Pro Header

  • This topic has 3 replies, 3 voices, and was last updated 7 years, 3 months ago by carasmo.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • November 20, 2015 at 1:23 pm #171646
    webcami
    Participant

    Is there a way to make the header the SAME height all the way through the site on CAFE PRO?

    I don't want the huge homepage header and what I've tried isn't working. I'd appreciate any help I can get!

    This is a site mock up, not a public (hidden from search) link...

    http://westseattlewordpress.com/maura2/
    December 4, 2015 at 2:40 am #172696
    jeffdalgliesh
    Member

    I have exactly the same question. Can anyone point out what to look at, it would be much appreciated.

    December 4, 2015 at 8:55 am #172737
    carasmo
    Participant

    In home.js comment out lines 10 (in ready function) and 21 (in resize function) as follows

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

    Two forward slashes in js and php (less and sass) is a single line comment. These don't work in CSS.

    This appears 2 times.

    In style.css locate:

    /* # Site Header
    ---------------------------------------------------------------------------------------------------- */
    
    .site-header {
    	background-color: #fff;
    	width: 100%;
    }
    
    .site-header .wrap {
       max-width: 100%;
       padding: 100px 0;
       text-align: center;
    }
    
    .cafe-pro-home .site-header {
    	display: table;
    }
    
    .cafe-pro-home .site-header .wrap {
    	display: table-cell;
    	vertical-align: middle;
     }

    and Change to:

    /* # Site Header
    ---------------------------------------------------------------------------------------------------- */
    
    .site-header {
    	background-color: #fff;
    	width: 100%;
    }
    
    .site-header .wrap {
       max-width: 100%;
       padding: 100px 0;
       text-align: center;
    }
    
    /* --- site header for home not used -----
    .cafe-pro-home .site-header {
    	display: table;
    }
    
    .cafe-pro-home .site-header .wrap {
    	display: table-cell;
    	vertical-align: middle;
     }
    ----- end site header for home not used ---- */
    

    Genesis Theme Customization and Help

    December 4, 2015 at 9:00 am #172740
    carasmo
    Participant

    Now, the rest of the page on the home page won't behave like it does in the demo and you will need to adjust that. Each section in the theme's original concept is to be the height of the viewport on load and resize, if you remove the home header height on just the home the rest of the sections of the home page will be the height of the viewport but the home won't be and the site-header height is not calculated into that (in the js).


    Genesis Theme Customization and Help

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

© 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