• 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 menu

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 menu

This topic is: resolved
  • This topic has 6 replies, 2 voices, and was last updated 12 years, 8 months ago by Sridhar Katakam.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • October 9, 2013 at 10:44 pm #66062
    mdruce
    Participant

    Hi,
    My Site: http://redrockbrewing.com/.

    I would like to make the primary menu centered. I have achieved this by setting

    menu-primary{
    margin-left: 170px;
    }
    It works and the menu becomes centered but with this setting on the iphone/ipad and other devices the site's primary menu aligns to the right as the responsive side is also having left margin of 170px.

    I would like to know a way with which I can center the primary menu and it will be shown centred also on the mobile devices.

    Any help would be highly appreciated.

    Thanks
    Mike

    October 9, 2013 at 11:12 pm #66073
    mdruce
    Participant

    Hi,
    Apologies for the incomplete information. I am using legacy theme by studiopress.

    Thanks
    Michael.

    October 9, 2013 at 11:35 pm #66076
    Sridhar Katakam
    Participant

    Use this CSS instead:

    #nav {
        display: table;
        margin: 0 auto;
    }
    
    #nav .wrap {
        width: auto;
    }

    Genesis Tutorials | Follow me on Twitter

    October 10, 2013 at 12:15 am #66082
    mdruce
    Participant

    Hi Sridhar,
    Thanks It worked. Can you check it once my welcome widget is not responsive. The reason behind.

    Thanks
    Mike

    October 10, 2013 at 6:56 am #66114
    Sridhar Katakam
    Participant

    Add the following at the end of child theme's style.css (WP dashboard -> Appearance -> Editor):

    .welcome-wrap {
        width: 100%;
        background: none;
        border-bottom: none;
    }
    
    .welcome-wrap .welcome-inner {
        background: #F2F2F2;
        border-bottom: 1px solid #CCCCCC;
    }

    Genesis Tutorials | Follow me on Twitter

    October 10, 2013 at 10:07 pm #66217
    mdruce
    Participant

    Hello Sridhar,
    Thanks but the welcome widget is not getting smaller on the iphone and the size is fixed as usual. How can we edit the responsive CSS in the legacy theme.

    Any help or idea would be appreciated.

    Thanks
    Mike

    October 10, 2013 at 11:07 pm #66222
    Sridhar Katakam
    Participant

    Looks fine to me in lower widths when I resize the browser.

    screenshot


    Genesis Tutorials | Follow me on Twitter

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