• 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

Primary Navigation Centering – Minimum Theme

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 › Primary Navigation Centering – Minimum Theme

This topic is: resolved

Tagged: centering, minimum, navigation, primary navigation

  • This topic has 2 replies, 2 voices, and was last updated 9 years, 8 months ago by mattOVM.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • July 12, 2013 at 10:35 am #50389
    mattOVM
    Member

    I am putting together this website and want to move the Primary Navigation in the Minimum Theme from Right to Center. I have a pretty good head start but I'm struggling to get it perfectly centered across the board on all the different devices.

    I adjust this code:

    /* Header
    ------------------------------------------------------------ */

    }

    #header .widget-area {
    float: none;
    margin: 0 auto;
    width: 72%;
    }

    I had the width at 60% which works for everything but the iPad in landscape view. Bumping the width up to 72% did the trick for the iPad but now the Navigation is leaning to the Right on my desktop browsers. I feel like there must be another code to give it an absolute value across the board?

    Any thoughts would be greatly appreciated.

    Thanks!
    Matt

    http://theclassicitycollective.com/secret-sauce
    July 12, 2013 at 11:28 am #50402
    Doak Heggeness
    Member

    Add text-align:center; to the following:

    .menu-primary,
    .menu-secondary,
    #header .menu {
    	clear: both;
    	color: #3e3e3e;
    	font-size: 13px;
    	margin: 0 auto;
    	overflow: hidden;
    	width: 100%;
            text-align:center;   
    }
    

    Changefloat: left; to float: none; & add display: inline-block;

    .menu-primary li,
    .menu-secondary li,
    #header .menu li {
    	display: inline-block;  
    	float: none;   
    	list-style-type: none;
    }

    Doak Heggeness, WordPress Development | Website

    July 12, 2013 at 11:55 am #50407
    mattOVM
    Member

    Thank you Doak, that's incredibly helpful!

    For others looking on, after Doak's changes I had to go back to the #header .widget-area and readjust the width to compensate. I found 62% seems to work in my case.

    #header .widget-area {
    float: none;
    margin: 0 auto;
    width: 62%

    Thank you!
    Matt

  • 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

© 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