WordPress.org

Ready to get started?Download WordPress

Forums

Twenty Thirteen
[resolved] How to Center Menu bar (7 posts)

  1. Leothecat
    Member
    Posted 9 months ago #

    I'd like to center menu bar.
    default is align left.

    http://mihoaida.com/gwichin/

  2. WPyogi
    Volunteer Moderator
    Posted 9 months ago #

    Try adding this to custom CSS - looks like you have JetPack so you can use Edit CSS :

    .nav-menu {
       display: table;
       margin: 0 auto;
    }

    Make sure that you are not modifying any theme files - as those changes will all be lost when WP is updated.

  3. Leothecat
    Member
    Posted 9 months ago #

    It works!

    Thanks so much.

  4. Lobo Lobo
    Member
    Posted 7 months ago #

    Hi ,
    that solution didnĀ“t work for me . What worked was :

    .main-navigation {
    	display: table;
    }

    Just in case. I am not an expert.

  5. Lobo Lobo
    Member
    Posted 7 months ago #

    ... But it looks as the menu does not run properly on mobile (with android)

  6. Andrew
    Forum Moderator
    Posted 7 months ago #

    You need to start up a new thread to discuss that.

  7. brighton beach
    Member
    Posted 4 months ago #

    This works for me. It centers all menu items except for the search box. Tested on Firefox and iphone/Safari

    .main-navigation {
    	text-aligtn: center;
    }

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.