• 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

Centering mobile 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 › Centering mobile menu

This topic is: resolved

Tagged: mobile mene; centering

  • This topic has 4 replies, 3 voices, and was last updated 6 years, 9 months ago by LW.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • September 5, 2018 at 5:39 pm #222981
    LW
    Member

    How can we center the mobile menu?

    Not the icon (hamburger/menu), but the content after you click the menu on a mobile device.

    I was able to do this before, but I didn't save it and I can't figure out how to do it again.

    Many thanks!

    http://lazybeedesigns.com
    September 6, 2018 at 4:18 am #222999
    Victor Font
    Moderator

    This is your current alignment CSS at line 1088 in style.css:

    .genesis-nav-menu .menu-item {
        display: inline-block;
        text-align: left;
    }

    If you change the alignment here to center, it will change it across all screen widths.

    To change it for mobile only, copy it into the media query that activates the mobile menu around line 2196 and set the text-align to center.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    September 6, 2018 at 1:07 pm #223027
    LW
    Member

    Thanks for your response Victor.

    Unfortunately, it didn't work out. After changing the code the menu stayed left-aligned.

    Do you have any other suggestions?

    September 6, 2018 at 1:24 pm #223029
    turkmandu
    Participant

    Line 2206 ... add "text-align: center;" ...

    @media only screen and (max-width: 680px)
    .genesis-nav-menu.responsive-menu li a, .genesis-nav-menu.responsive-menu li a:hover {
        border: none;
        display: block;
        line-height: 1;
        padding: 18px 20px;
        text-transform: none;
        text-align: center;
    }
    September 6, 2018 at 2:18 pm #223032
    LW
    Member

    Thank you both for the help, the last comment helped.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Centering mobile menu’ 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

© 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