• 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

Genesis Sample child theme – How to remove sticky site-header?

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 › Genesis Sample child theme – How to remove sticky site-header?

This topic is: resolved

Tagged: genesis

  • This topic has 2 replies, 2 voices, and was last updated 2 years, 8 months ago by oyvdahl.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • May 12, 2020 at 1:51 am #498642
    oyvdahl
    Member

    Hi everyone! I'm creating a child theme based on Genesis Sample. But there is one thing I have not been able to figure out: How do I remove the sticky site-header?

    I've tried to change position to absolute, which I've seen proposed as the solution many places, but then site-inner and site-header both end up starting from the top of the screen so that site-header will cover 70px of site-inner.

    Here's a sample page:
    https://staging-buildelectroniccircuits.kinsta.cloud/basic-electronic-components/

    May 12, 2020 at 5:14 am #498649
    andytc
    Participant

    Completely remove this entry at line 1472 - it's in a media query

    @media only screen and (min-width: 960px)
    .site-header {
        position: -webkit-sticky;
        position: sticky; 
        top: 0; 
        z-index: 9999;
    }

    Edit line 994 - Change :absolute to :relative

    .site-header {
        background-color: #fff;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
        padding: 0 30px;
        position: relative;
    }
    May 12, 2020 at 6:26 am #498650
    oyvdahl
    Member

    That did the trick=)
    Thank you so much!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Genesis Sample child theme – How to remove sticky site-header?’ is closed to new 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