• 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 main menu in magazine 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 › Design Tips and Tricks › How to center the main menu in magazine theme?

This topic is: resolved

Tagged: css, magazine, menu, navagation

  • This topic has 7 replies, 3 voices, and was last updated 9 years ago by Tony @ AlphaBlossom.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • September 7, 2014 at 10:28 am #123156
    Ryan Kennedy
    Member

    Hello,

    I've searched thru code snippets and the forum to no avail.

    I'd like to center my main navigation menu rather than have it left oriented.

    Anyone please point me in the right direction.

    Thanks in advance studiopress community.

    http://onlytherealest.com
    September 7, 2014 at 1:19 pm #123186
    Genesis Developer
    Member

    Go to line no 488 of your style.css file and replaced the current code with this code

    
    #subnav ul {
        float: none;
        margin: 0 auto;
        width: 59%;
    }

    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    September 7, 2014 at 1:34 pm #123188
    Tony @ AlphaBlossom
    Member

    Hello,

    In your theme's style.css file, around line 488, make these changes:

    
    #subnav ul {
        display: table;
        float: none;
        margin: 0 auto;
        width: auto;
    }
    

    Have a great day,
    Tony


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

    September 7, 2014 at 1:42 pm #123191
    Genesis Developer
    Member

    @tony good to know it display: table; part.


    @Ryan
    Kennedy Use the tony's code. Avoid my width: 59%; code


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    September 7, 2014 at 2:11 pm #123201
    Ryan Kennedy
    Member

    Thanks for the quick help.

    How do I see the line numbers in the editor section? Should I take the code out another editor to make edits?

    September 7, 2014 at 2:16 pm #123203
    Genesis Developer
    Member

    you can use dreamweaver or any other text editor. Or you can use filemanger from your Host CPanel.

    Another way you just search the #subnav ul in the style.css file (Dashboard -> Appearance-> Editor)


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    September 7, 2014 at 2:22 pm #123205
    Ryan Kennedy
    Member

    Alright great I copied the code into text wrangler.

    Thanks a ton for the help guys.

    September 7, 2014 at 4:10 pm #123221
    Tony @ AlphaBlossom
    Member

    @genwrock, sorry your solution didn't show when I posted mine. There's a lot of ways to do it, but table works well for me and uses less code than the other ways I've done it.


    @Ryan
    Kennedy, glad we could help!


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

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

© 2023 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