• 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

Help with centering 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 › Design Tips and Tricks › Help with centering menu

This topic is: not resolved
  • This topic has 9 replies, 2 voices, and was last updated 11 years, 4 months ago by Genesis Developer.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • January 16, 2014 at 4:38 pm #85564
    wp guy
    Member

    I've tried what I thought would work to center the menu, but it doesn't. I'd appreciate any help:

    http://ashley.ethemedhosting.com/
    January 19, 2014 at 7:35 am #85864
    wp guy
    Member

    Bump - any help with this?

    January 19, 2014 at 8:16 am #85868
    Genesis Developer
    Member

    Replace in css file. line no 277

    .menu-primary li, .menu-secondary li, .site-header .menu li {
        float: left;
        list-style-type: none;
    }

    with

     .menu-secondary li, .site-header .menu li {
        float: left;
        list-style-type: none;
    }

    Next Add this new code

    .menu-primary li{
      display: inline-block;
      list-style-type: none;
    }

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

    January 19, 2014 at 8:29 am #85869
    wp guy
    Member

    Thank you, but when I put in those changes it still did not center the menu.

    January 19, 2014 at 8:52 am #85874
    Genesis Developer
    Member

    are you sure that you added my code in style.css file of your child theme?


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

    January 19, 2014 at 9:06 am #85878
    wp guy
    Member

    I'm pretty sure. I made the changes in firebug to see if it would work and it did not. Below is the entire code after I made your changes:

    /* Header / Primary / Secondary Navigation
    ------------------------------------------------------------ */
    .menu-primary,
    .menu-secondary,
    .site-header .menu {
    background-color: #ebe5dc;
    clear: both;
    color: #737068;
    font-size: 14px;
    margin: 0 auto;
    overflow: hidden;
    width: 100%;
    }

    .menu-secondary {
    background-image: url(images/bg-footer-widgets-bot.png) bottom;
    border-top: 1px dashed #fff;
    }

    .site-header .menu {
    float: right;
    margin: 0;
    width: auto;
    }

    .menu-primary ul,
    .menu-secondary ul,
    .site-header .menu ul {
    float: left;
    width: 100%;
    }

    .menu-secondary li, .site-header .menu li {
    float: left;
    list-style-type: none;
    }

    .menu-primary li{
    display: inline-block;
    list-style-type: none;
    }

    January 19, 2014 at 9:09 am #85879
    Genesis Developer
    Member

    .menu-primary li, .menu-secondary li, .site-header .menu li {
    float: left;
    list-style-type: none;
    }

    Still I am getting the above code. You will remove it from 277 line and add my code. It will work


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

    January 19, 2014 at 9:13 am #85882
    Genesis Developer
    Member

    also add this code .menu-primary{text-align: center;}


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

    January 19, 2014 at 9:19 am #85884
    wp guy
    Member

    Perfect! That last piece of code did that trick. Thank you.

    January 19, 2014 at 9:22 am #85886
    Genesis Developer
    Member

    Yes. I forgot to add it first time :). We are also welcome.


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

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