• 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

Unfix Header Scroll in Infinity 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 › Unfix Header Scroll in Infinity Pro

This topic is: resolved

Tagged: unfix header bar

  • This topic has 2 replies, 2 voices, and was last updated 3 years, 10 months ago by di.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • May 28, 2019 at 10:32 pm #491394
    di
    Participant

    Under .site-header I commented out position:fixed in order to stop the header bar from moving with the scroll. This works however it then takes away from the semi-transparent header bar I have for the Front Page (style-front.css) where I have the .front-page .site-header set at background-color: rgba (116,0,0,0.5).

    Any suggestions?

    https://www.chrisquilts.net
    May 29, 2019 at 5:22 am #491396
    Victor Font
    Moderator

    The transparency is working fine. The problem you are experiencing is because of removing position: fixed.

    When you removed position: fixed, the default position: static; replaces it regardless of whether you specified it or not. Static positioning works similarly to relative positioning. Everything that was underneath the header before you removed fixed positioning has been pushed down into its relative position. There's nothing under the header now to show through the transparency except white space.

    To fix this, change your CSS to this:

    .front-page .site-header {
        background-color: rgba(116,0,0,0.5) !important;
        border-bottom: 1px solid transparent;
        max-height: 500px;
        position: relative;
    }
    
    .front-page .site-inner {
        top: -100px;
        max-width: 100%;
        padding-top: 0;
        position: relative;
    }

    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    May 29, 2019 at 10:14 am #491407
    di
    Participant

    Thanks! That did the trick!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Unfix Header Scroll in Infinity Pro’ 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