• 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

Infinity Pro – Header overlays first widget area on front page

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 › Infinity Pro – Header overlays first widget area on front page

This topic is: resolved

Tagged: Infinity Header

  • This topic has 2 replies, 2 voices, and was last updated 8 years, 7 months ago by PyramidWeb.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • June 28, 2017 at 7:19 pm #208419
    PyramidWeb
    Member

    Hi there,
    I'm currently building a website using the Infinity Pro theme in a local environment. I'm using a logo instead of the site title, so the background of the header is always white (even without scrolling).

    My problem: The header overlays the first widget area on the front page. For example, the header covers the upper part of the background image in the first widget area.

    My question: How can I make the first widget area start after the header, so that the header does not cover any part of the first widget area?

    In my opinion, adding a constant margin-top for ".front-page .site-inner" is not an option because the height of the header changes depending on viewing device. In addition, the height of the responsive header depends on the number of menu items.

    Thanks for your help. Your comments are much appreciated.

    http://(local)
    June 29, 2017 at 2:08 am #208427
    ᴅᴀᴠɪᴅ
    Member

    in infinity pro this problem is solved on the other pages apart from the home page. the site inner gets margin-top automatically applied depending on the height of the site header and if it's fixed position or not.

    The only page this doesn't apply on is the home page. It sounds like all you need to do is activate it for the home page aswell.

    so you need to go into /infinity-pro/js/global.js

    and find the bit...

    // Push the .site-inner down dependant on the header height.
    	if ( ! $body.hasClass( 'front-page' ) ) {
    
    		__repositionSiteHeader( headerHeight, $siteInner );
    
    		$(window).resize(function() {
    
    			// Update header height value.
    			headerHeight = $siteHeader.height();
    			__repositionSiteHeader( headerHeight, $siteInner );
    
    		});
    
    	}
    

    and remove the restriction for the front page...

    // Push the .site-inner down dependant on the header height.
    
    		__repositionSiteHeader( headerHeight, $siteInner );
    
    		$(window).resize(function() {
    
    			// Update header height value.
    			headerHeight = $siteHeader.height();
    			__repositionSiteHeader( headerHeight, $siteInner );
    
    		});
    
    	

    make sure to remove the end bracket also so you don't brake the js


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

    Follow on Twitter

    June 29, 2017 at 8:33 am #208462
    PyramidWeb
    Member

    Thank you, Dave. That solved the problem!

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