• 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

How To Center The Primary Navigation Horizontal Menus

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 › General Discussion › How To Center The Primary Navigation Horizontal Menus

This topic is: not resolved

Tagged: centred, menus, navigation, primary navigation

  • This topic has 5 replies, 2 voices, and was last updated 12 years, 10 months ago by Tony @ AlphaBlossom.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • February 6, 2013 at 7:45 am #18425
    RobCubbon
    Member

    Hi,
    This is a general issue with Genesis that I've been struggling with for a long time.
    I've used this tutorial: http://journalxtra.com/easyguides/howto-center-wordpress-genesis-theme-horizontal-menus-4729/ with some success in the past but I just can't get it to work on this site: http://genuinehypnosis.com/ which is based on the Streamline theme but this question applies to most Genesis themes.
    I want the menu to be centered on all the mobile and tablet responsive views and / or the "normal" version.
    I can't believe that such a simple thing is so difficult in Genesis.


    Rob Cubbon

    February 6, 2013 at 12:44 pm #18472
    Tony @ AlphaBlossom
    Member

    Hello,

    The menu is already centered, so I'm assuming you want the specific menu items centered. Try this:


    #nav li {
    float: none;
    display: inline-block;
    }

    You might also have to add:

    #nav ul {
    text-align: center;
    }

    Also, if you're using submenus or more than one, you will have to be more specific in your css targeting, but the above code worked with the menu you linked to above.

    And if you want it centered only on certain devices or screen resolutions, you can add this code to your media queries to target those (you can see examples of this in the new genesis style.css files).

    Take care,

    Tony
    AlphaBlossom


    Tony Eppright | http://www.AlphaBlossom.com | Follow me on twitter @_alphablossom

    February 7, 2013 at 5:56 pm #18787
    RobCubbon
    Member

    Hello Tony, thank you so much for that.

    This wasn't necessary:


    #nav ul {
    text-align: center;
    }

    However, with just 4 items in the menu I think they look too spaced out at the wide view but if you put it in @media only screen and (max-width: 960px) it looks really good on the smaller devices this way 🙂


    Rob Cubbon

    February 7, 2013 at 6:01 pm #18790
    Tony @ AlphaBlossom
    Member

    Hey Rob,

    Glad it helped!

    This is unsolicited advice :), but it would look better at smaller resolutions if you removed the background image and replaced it with a color, or created a background image that is taller.

    When the menu doubles into a 2nd row, the image is too short so you have a line in the middle of the menu.

    Have a great day.

    Tony


    Tony Eppright | http://www.AlphaBlossom.com | Follow me on twitter @_alphablossom

    February 7, 2013 at 6:04 pm #18791
    RobCubbon
    Member

    Totally agree, Tony, that is my next job! I'm gonna remove the background image – but only on the narrower versions!


    Rob Cubbon

    February 7, 2013 at 6:05 pm #18792
    Tony @ AlphaBlossom
    Member

    Yep, that will look great!


    Tony Eppright | http://www.AlphaBlossom.com | Follow me on twitter @_alphablossom

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘General Discussion’ 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