To center the menu just edit this css code :
.main-navigation ul.nav-menu, .main-navigation div.nav-menu > ul {
text-align: left;
}
to :
.main-navigation ul.nav-menu, .main-navigation div.nav-menu > ul {
text-align: center;
}
Related Posts:
- Customizing Only a Specific Menu using the “wp_nav_menu_items” Hook?
- How make top level menu item not have link, but have sub-menus that are linked?
- How to Hard Code Custom menu items
- How Does The Walker Class Work?
- Check if page is in a certain menu
- How to stop mobile theme inheriting desktop navigation menu?
- Increase search results for Admin -> Appearance -> Menus -> Search (default is 10)
- Large WP 3.0 menu times out and won’t save
- How do I add the data-toggle=”modal” data-target=”#myModal” attribures to a WP Nav bar?
- How to switch between the Primary Menus programmatically?
- if role is logged in then do something
- Terms with more than one occurrence have current-menu-item class in menu
- Nav menu items disappearing (but not immediately)
- Page not appearing in navigation bar
- custom menu not found
- How to add text before WordPress menu item href
- Nav walker, bootstrap: Display 3rd level items under 2nd level
- Remove nav_menus from customizer using a theme
- Benefits of using Nav Walker?
- display only the wp_nav_menu, which has the current-menu-item
- Add tabindex to navmenu
- wp_list_pages sort order is different for different languages [closed]
- Remove Metabox from Menus screen
- I’m having a lot of trouble since upgrade to 3.0.1 with get_page_children() function
- How can I add a link to a WPForms “contact us” form to the main menu?
- How to fix “Supplied nav_menu_item value missing property” after update to WordPress 5.0
- Create search form in menu as in Twenty Fourteen theme
- Add link at the end of wp_nav_menu
- How to add programmatically all pages and children to backend menu
- Generating wordpress menu – cant understand the config
- SlideDeck 2, make back-end visible for admins only
- How to add ID attribute to each submenu?
- How do you link to a place in another page without any styling issues?
- From a page, is it possible to find entry’s “menu_item_parent”?
- WordPress menu link not working
- Using a shortcode to create a dropdown menu from wp_nav_menu list items
- How to retrieve parent menu item name of current submenu item
- Determine the last child of the parent menu WP Nav Walker
- Edit menu parent element
- Navigation doesn’t render when wp is hosted
- WordPress menu performance is slow when lot of items [closed]
- HTML list menu to WordPress menu
- Filter Menu Items by Custom User Role in a page
- Does is_child() exist in wp 3.5.1?
- Add “drop-down arrow” for menu items with sub-menus
- Cannot seem to replace the native menu with the menu I created, so 2 menus appear
- Add span in top menu item with nested itens
- Secondary Navigation Menudisappeared When using wp_nav_menu_items
- Hide menu items if the page content is empty
- Output menu title
- Add Labels to Admin Menu ( How To )
- exclude pages in custom menu
- Adding new pages to Menu
- WP navigation list classes
- Hamburger Menu not working on reduced browser size
- unable to add custom page/tab to my account woocommerce
- Add (grand)child pages automatically to nav menu
- Switch an entire nav menu if user is logged in
- Pull Menu Items Into an HTML element
- WordPress functions.php does not affect the theme menus
- Drop Down menu expanded by default (on front page) [closed]
- Simple form to add custom links to menu?
- Wrap wp_nav_menu output around option tags for select menu
- How to get current pages menu text?
- Search form as list item in menu?
- What’s the best way to customize the WordPress Menu Page (in admin)
- Catagorized hierarchy menu for PAGES!
- Option to create menu is missing
- Making the menu toggled open on mobile devices Illustratr theme
- How to include second layer sub menu to Walker Nav?
- need help in wordpress navbar setup
- Event listener callback returns undefined element
- Add class to sub-menu from unrelated element
- Add CSS Class to WordPress Menu Item Dependent on the Page the User is Visiting
- Menu walker: how to tell if a sub menu contains submenus?
- Sub Menus will not work
- How do i make a custom top level dashboard menu item available for all users?
- Walker or wp_get_nav_menu_items VS jQuery
- I can’t correctly display menu
- Specific Page that convert Hyperlink to anchor in nav menu
- Disappearing items in menu
- Menu not saving in dashboard
- Help with changing style of the extended menu drop down [closed]
- Where these arguments are defined?
- How do i keep my current page menu highlighted on pagination?
- How we show pages in dropdown
- Menu support for touch devices
- WordPress Flyout Menus
- Pick out specific menu item from code
- Show All Children of WordPress Menu
- How to make an anchored page in a navigation menu tab
- highlight parent page on menu when child page is on sidebar (and not on menu)
- nav tag wrapping around dropdown
- Resolve the debugs
- How to set menu Display location
- How to add custom menu to block theme?
- get menu name for the current displayed page
- What is the best way to incorporate responsive dropdown navigation menu into custom theme?
- Submenu items not working anymore
- How to change mobile menu (toggle) icon in WordPress – Full Site Editing?