• 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 top menu in Agency 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 › General Discussion › Centering top menu in Agency theme

This topic is: not resolved
  • This topic has 2 replies, 3 voices, and was last updated 12 years, 7 months ago by Derek.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • July 10, 2013 at 6:36 am #50072
    gwhite
    Member

    Hi,

    I want to align the top navigation menu in the centre.

    Could someone help me with this please.

    Thanks,

    Gordon

    http://www.dizzypress.com/alanh/
    July 10, 2013 at 7:47 am #50090
    David Chu
    Participant

    Hi,
    I have a designer friend who always wants that, so I burn a little time on each of our projects doing it. ๐Ÿ™‚ Believe it or not, that's an advanced CSS topic. Here are some ideas. I weighed in with a comment about how to make all this work with dropdowns, which is even trickier.

    Good luck,
    Dave


    Dave Chu ยท Custom WordPress Developer – likes collaborating with Designers

    July 10, 2013 at 7:48 am #50091
    Derek
    Member

    Add/Update the following in your style.css file:

    .menu-primary, 
    .menu-secondary, 
    #header .menu {
        text-align: center;
    }
    
    .menu-primary li, .menu-secondary li, #header .menu li {
        display: inline-block;
        float: none;
        *+display: block; /*IE7 fallback */
        *+float: left; /*IE7 fallback */
    }

    Derek Rippe – CSS Artist & Genesis Fanboy @ SynaVista and MediaCairn Design Studio
    Figure out your CSS problems with Firebug | Check out my Custom Comment Form Title plugin

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

© 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