• 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

Cafe Pro: Featured header image same 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 › Design Tips and Tricks › Cafe Pro: Featured header image same height?

This topic is: resolved
  • This topic has 4 replies, 4 voices, and was last updated 10 years ago by Sanaa.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • January 21, 2015 at 3:10 pm #138214
    Elan
    Member

    Hello! I'm customizing the Cafe Pro theme at the moment and got stuck trying to change the height of the main header image ("Featured Section header Image") on the home page.

    The header image is much taller on the homepage than on other content pages. Is there a way I can have my main header image show up shorter on the front page as well? I'd like to keep that main header the same (shorter) height on every page, including the home page. I hope there's an easy way that I'm just overlooking.

    I'll be happy to provide a link if you need it, but you can also see the height difference by comparing the home page of the demo to the "Farm to Table Dinner" page of the demo.

    Thank you so much for any help you can provide!

    January 22, 2015 at 7:48 pm #138353
    ᴅᴀᴠɪᴅ
    Member

    The height of that section is controlled by javascript as it has to work out the height of the screen size first, then apply the css.

    So to change it, you need to stop the file home.js enqueuing on the front page.

    Easiest way is to edit the file front-page.php and delete these lines of code (lines 17-25)

    if ( is_active_sidebar( 'front-page-1' ) || is_active_sidebar( 'front-page-2' ) || is_active_sidebar( 'front-page-3' ) || is_active_sidebar( 'front-page-4' ) ) {
    
    		//* Enqueue home script
    		add_action( 'wp_enqueue_scripts', 'cafe_enqueue_cafe_script' );
    		function cafe_enqueue_cafe_script() {
    
    			wp_enqueue_script( 'home-script', get_bloginfo( 'stylesheet_directory' ) . '/js/home.js', array( 'jquery' ), '1.0.0' );
    
    		}

    I love helping creative entrepreneurs build epic things with WP & Genesis.

    Follow on Twitter

    January 23, 2015 at 10:19 am #138423
    Elan
    Member

    Thank you very much! When I deleted the code you shared, the whole front page went blank. I ended up just deleting this portion:

    //* Enqueue home script
    		add_action( 'wp_enqueue_scripts', 'cafe_enqueue_cafe_script' );
    		function cafe_enqueue_cafe_script() {
    
    			wp_enqueue_script( 'home-script', get_bloginfo( 'stylesheet_directory' ) . '/js/home.js', array( 'jquery' ), '1.0.0' );
    
    		}

    And it seemed to do the trick!

    January 29, 2015 at 4:10 am #138938
    Dan B
    Participant

    Excellent, that worked for me too! Thanks...

    Do we still need to keep the home.js file?


    Dan @ ZindaMedia
    Marketing, Fundraising and Social Media strategies for non-profits.

    April 23, 2016 at 4:27 am #184244
    Sanaa
    Member

    Thanks Elan!

    That worked for me as well.

    Sanaa

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