• 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

SAMPLE THEME – How do i center navigation text?

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 › SAMPLE THEME – How do i center navigation text?

This topic is: resolved
  • This topic has 8 replies, 4 voices, and was last updated 13 years, 7 months ago by David Chu.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • January 27, 2013 at 12:14 am #15248
    Lynsey
    Member

    I would like to know how to center the navigation text in the sample theme, i tried text-align:center; in a few different parts but it's not working.  Please can anyone help?

    January 27, 2013 at 11:54 am #15347
    Susan
    Moderator

    Try this tutorial:

    you need to look for: #nav

    #nav{text-align:center}
    

    If you tried this, and it didn't work (after clearing your cache), can you please post a link to your site, so we can look at the code. Thanks.

    January 27, 2013 at 2:16 pm #15391
    Lynsey
    Member

    Nope that didn't work there is no nav or subnav in the css  this is the link to the site

    http://www.shinymagic.com/samplewp/

    January 27, 2013 at 3:40 pm #15419
    Susan Nelson
    Participant

    You'll have to play around with it, but you could start with adding something like this:

    .genesis-nav-menu {
    clear: both;
     margin: 20px auto;
    overflow: hidden;
    width: 55%;
    }

    For the margin, you can use any number for the top/bottom - I just happened to use 20px.

    Ideally, you'll need to add a structure wrap so that the black background can stretch from edge to edge.... Let me do a little looking to see what I can come up with. I'll be back.

    January 27, 2013 at 3:42 pm #15421
    Susan Nelson
    Participant

    Oops - double post.

    January 27, 2013 at 6:00 pm #15448
    Susan
    Moderator

    From my friend @bradleypotter:

    Apply text-align: center; to .genesis-nav-menu and remove float:left from .genesis-nav-menu ul and .genesis-nav-menu li

    January 28, 2013 at 8:41 am #15551
    Lynsey
    Member

    Thanks so much susan that worked perfect!  And thank your friend bradley for me! And thank you to the other susan for your help!

    January 28, 2013 at 9:14 am #15556
    Susan
    Moderator

    Thanks for letting us know - I passed your thanks along to Bradley, too! 🙂

    Closing this thread as resolved - please start another thread if you have another question.

    January 28, 2013 at 9:14 am #15557
    David Chu
    Participant

    Hi All,

    I used this method for centering my menu and it worked just fine.  However, if you only follow what's in the article, dropdowns will be messed up.  I fixed that, too - you can see what I did if you look for "dave" in the comments.

    Your mileage may vary slightly, but my own base theme is based on Sample, so it should be pretty close.  Hope this helps someone!

    Ciao, Dave


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

  • Author
    Posts
Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘SAMPLE THEME – How do i center navigation text?’ is closed to new 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