• 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

Center Primary Nav Menu in Generate 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 › Center Primary Nav Menu in Generate Pro

This topic is: resolved

Tagged: css, generate pro, navigation

  • This topic has 7 replies, 2 voices, and was last updated 10 years, 10 months ago by kevinburke2.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • September 26, 2015 at 7:05 am #166710
    kevinburke2
    Member

    I've reduced the width of the site, and I was able to center the logo/title, but now I'm looking to center my primary nav menu that is just under the title/logo.

    I've found several different examples of code, but can't seem to get any of them to work.

    Any thoughts?

    http://www.iphoneparents.com

    http://www.iphoneparents.com
    September 26, 2015 at 7:52 am #166711
    Brad Dalton
    Participant

    Try this http://wpsites.net/web-design/center-align-nav-menu/


    Tutorials for StudioPress Themes.

    September 26, 2015 at 9:48 am #166713
    kevinburke2
    Member

    I've tried this in several different locations. I added:

    .nav-primary {
    text-align: center;
    }

    Here is what is in my Generate Pro Child Theme CSS:

    /* Primary Navigation
    --------------------------------------------- */
    
    .nav-primary .wrap {
    	background-color: #fff;
    	border-top: 4px solid #eb232f;
    	box-shadow: 0 2px rgba(0, 0, 0, 0.05);
    }
    
    .nav-primary .genesis-nav-menu > li.menu-item-has-children:hover > a,
    .nav-primary .genesis-nav-menu > li > a:hover {
    	background-color: #eb232f;
    	color: #fff;
    }
    September 26, 2015 at 10:35 am #166717
    Brad Dalton
    Participant

    Do you have any caching or minification plugins active?


    Tutorials for StudioPress Themes.

    September 26, 2015 at 11:25 am #166719
    kevinburke2
    Member

    I do have W3 Total Cache plugin activated. But after updating the CSS, I emptied all caches. Should I disable that plugin until I get everything worked out like I want?

    September 26, 2015 at 11:30 am #166720
    Brad Dalton
    Participant

    Where did you add the CSS?


    Tutorials for StudioPress Themes.

    September 26, 2015 at 11:48 am #166722
    kevinburke2
    Member

    Appearance ---> Editor and then the style.css....

    October 1, 2015 at 6:45 am #167135
    kevinburke2
    Member

    Just as a follow up, your first line of code on this tutorial! Thanks! Marking resolved!

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