• 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

Removing Shrinking Header in Genesis Centric 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 › Removing Shrinking Header in Genesis Centric Pro

This topic is: resolved

Tagged: centric, fixed header

  • This topic has 8 replies, 5 voices, and was last updated 11 years, 5 months ago by danielshaw.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • February 26, 2014 at 10:25 am #92479
    elioverbey
    Participant

    What if you wanted to remove the javascript action on the Centric pro theme that had the header go from large to small? Meaning – there would be no action – the header would just be small the entire time (and fixed)?

    The action is nice, but for the project I am working on - it doesn't fit.

    Thanks for your thoughts!


    Let me help you customize your theme, or help your with SEO. Current Sr. SEO Analyst at Worldwide NonProfit
    Visit me here: elioverbey.net | Connect on Twitter

    http://elioverbey.net
    March 11, 2014 at 7:23 am #94263
    MauMedia
    Member

    Hi, I would also like to remove this function. Can anybody help?

    Thank you in advance!

    March 17, 2014 at 4:34 am #95271
    tomatillodesign
    Member

    I also need to remove this action. Nice for some sites but too distracting for my project. Thanks for any help.

    March 18, 2014 at 2:34 pm #95549
    elkiehound
    Member

    Elioverbay,

    Looks like your site if fixed now, the header does not change sizes. How did you fix it ?

    Thanks for sharing

    March 18, 2014 at 3:24 pm #95558
    elioverbey
    Participant

    This is a hack but it worked for me 🙂 Just replace the code below with the code in /js/global.js. The only difference is that I remove the "shrink" class in line 7.

    jQuery(function( $ ){
    
    	$(".site-header").after('<div class="bumper"></div>');
    
    	$(window).scroll(function () {
    	  if ($(document).scrollTop() > 1 ) {
    	    $('.site-header').removeClass('shrink');
    	  } else {
    	    $('.site-header').removeClass('shrink');
    	  }
    	});
        
        $("header .genesis-nav-menu").addClass("responsive-menu").before('<div id="responsive-menu-icon"></div>');
        
        $("#responsive-menu-icon").click(function(){
        	$("header .genesis-nav-menu").slideToggle();
        });
        
        $(window).resize(function(){
        	if(window.innerWidth > 600) {
        		$("header .genesis-nav-menu").removeAttr("style");
        	}
        });
    	
    });
    

    Then, it's just simple css:

    /* On Line 1049 Change: */
    .site-header .wrap {
    	min-height: 30px;
    }
    
    /* On Line 1053 Change: */
    .bumper {
    	min-height: 30px;
    }
    
    /* On Line 1057 Change: */
    .site-header .wrap {
    	padding: 10px;
    	max-width: 100%;
    }
    
    /* On Line 1083 Change: */
    .site-title {
    	font-family: 'Spinnaker', sans-serif;
    	font-size: 30px;
    	font-weight: 700;
    	line-height: 1.2;
    }
    
    /* On Line 2242, Find and DELETE: */
    .site-header .wrap {
    	padding: 20px 5% 0;
    }
    	
    .site-header.shrink .wrap {
    	padding: 0px 5%;
    }
    
    /* On Line 2330, Find and DELETE: */
    .site-header .wrap {
    	min-height: 100px;
    	}
    .site-header .site-title {
    	font-size: 40px;
    	}
    .shrink .site-title {
    	font-size: 24px;
    	}
    

    I hope that works for you. You can edit the css for your needs!


    Let me help you customize your theme, or help your with SEO. Current Sr. SEO Analyst at Worldwide NonProfit
    Visit me here: elioverbey.net | Connect on Twitter

    March 18, 2014 at 3:46 pm #95562
    elioverbey
    Participant

    I tried this and it works as well. It just removes the shrinking action completely.

    jQuery(function( $ ){
        
        $("header .genesis-nav-menu").addClass("responsive-menu").before('<div id="responsive-menu-icon"></div>');
        
        $("#responsive-menu-icon").click(function(){
        	$("header .genesis-nav-menu").slideToggle();
        });
        
        $(window).resize(function(){
        	if(window.innerWidth > 600) {
        		$("header .genesis-nav-menu").removeAttr("style");
        	}
        });
    	
    });
    

    The CSS above will work, but I haven't fixed it when you add a custom menu in the header right. I am sure you will have to adjust your padding and margin there.


    Let me help you customize your theme, or help your with SEO. Current Sr. SEO Analyst at Worldwide NonProfit
    Visit me here: elioverbey.net | Connect on Twitter

    March 19, 2014 at 9:58 am #95695
    tomatillodesign
    Member

    Sorry a bit of a newbie here. Where do you add the jQuery code? Thanks for your help.

    March 19, 2014 at 9:59 am #95696
    tomatillodesign
    Member

    Nevermind - I see it above.

    January 19, 2015 at 9:14 am #137922
    danielshaw
    Member

    How would you remove the entire centric header completely?

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