• 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

Centering Nav 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 › Centering Nav in Infinity Pro

This topic is: not resolved

Tagged: nav menu, site-header

  • This topic has 2 replies, 3 voices, and was last updated 5 years, 3 months ago by Victor Font.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • July 21, 2020 at 8:57 am #500229
    lukestiller
    Participant

    Hi! I know this question has been answered before but it's not quite working for me. I've changed the header bar to be transparent until scrolling even with the header image, as per these instructions.

    Doing so uncenters the nav links so in the comments the fix is:

    @media only screen and (min-width: 801px) {
        .site-header > .wrap {
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-pack: center;
                -ms-flex-pack: center;
                    justify-content: center;
        }
    
        .nav-primary {
            -webkit-box-flex: 1;
                -ms-flex: 1;
                    flex: 1;
        }
    
        .title-area {
            -ms-flex-item-align: start;
                align-self: flex-start;
        }
    }

    However, this seems to center the navigation links to between the end of the header image and the right of the header bar. But how would I be able to get the links centered in the middle of the entire header bar?

    I would very much appreciate any help. Thanks!

    July 21, 2020 at 9:07 am #500231
    Brad Dalton
    Participant

    You could use CSS grid. https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout/Box_Alignment_in_CSS_Grid_Layout


    Tutorials for StudioPress Themes.

    July 21, 2020 at 1:33 pm #500233
    Victor Font
    Moderator

    Here's an article that explains how to use CSS grid with the Genesis header. https://victorfont.com/customize-the-genesis-header-with-css-grid-layout/


    Regards,

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

  • 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

© 2025 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