• 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 primary nav bar but leave secondary nav bar full-width in Prose

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 › How to center primary nav bar but leave secondary nav bar full-width in Prose

This topic is: not resolved

Tagged: Prose

  • This topic has 6 replies, 2 voices, and was last updated 11 years, 5 months ago by Jamie.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • July 12, 2014 at 7:46 am #114017
    Jamie
    Member

    Hi, I am using Prose. Up until this point, I have only been using the secondary nav bar below the header. Now I want to add in the primary nav bar above the header as well, and put a few menu buttons up there.

    My secondary nav bar is full-width and I want to leave it that way. Someone from this forum provided some custom code awhile back to make that happen. But the problem is that now, when I add the primary nav bar, it also becomes full-width, and my menu buttons show up all the way over to the left side of the screen (in the white space - not over the content area).

    How do I change the custom code to make the primary nav bar appear in its normal spot, left-justified over the wrap area only, and leave the secondary nav bar full-width?

    http://www.fromhispresence.com is my link.
    Thank you so much!

    http://www.fromhispresence.com
    July 12, 2014 at 12:22 pm #114046
    Brad Dalton
    Participant

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


    Tutorials for StudioPress Themes.

    July 12, 2014 at 4:44 pm #114078
    Jamie
    Member

    Thank you. I just tried it. It didn't work, unfortunately.

    July 12, 2014 at 5:29 pm #114084
    Jamie
    Member

    This is the custom code I already have, if it helps:
    /***full-width subnav***/
    body {
    width: 100%;
    }
    #subnav ul {
    float: none;
    margin: 0 auto;
    width: 970px;
    }
    #footer {
    width: 970px;
    }

    July 13, 2014 at 2:47 am #114120
    Brad Dalton
    Participant

    Works for me. I use it on my own site.

    I see you have minified your CSS using a plugin which is why it may not be updating and makes it hard to test with Firebug.

    Also note the CSS in the post i linked to works on HTML 5 themes and not the old themes running XHTML markup.

    In your case try:

    #nav {
        text-align: center;
    }
    

    After you turn off minification.


    Tutorials for StudioPress Themes.

    July 13, 2014 at 6:21 pm #114183
    Jamie
    Member

    Ok, I disabled minification and added the code. I tried it at the top of the Custom Code field and at the end of the other nav bar code. But neither place fixed it. Should I move it somewhere else?
    Thanks for your help!

    July 14, 2014 at 6:37 pm #114323
    Jamie
    Member

    Hey! I think I did it! I used different code, and I know NOTHING about coding anything, but it's sitting back in its proper place with this code (I copied the code you had above and tweaked it a bit based on the custom code I already had):
    #nav {
    float: none;
    margin: 0 auto;
    width: 970px;
    }
    The only problem is that now it added too much white margin between the primary nav bar line and the Hello Bar. Do you happen to know why the header and nav bar would have moved down, and how I can move them back up?
    Thank you so much! 🙂

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

© 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