Hey there bassplayer84,
This can be done by adding some custom CSS. The easiest way to do that, if your theme doesn’t already have custom CSS tab, would be to add it in your site using the following plugin
http://ww.wp.xz.cn/plugins/simple-custom-css
Once the plugin is installed and activated you can add this code to Appearance >> Custom CSS:
ul#menu-menu-1 {
width: 750px;
margin-right: auto;
margin-left: auto;
}
This should center the navigation horizontally. Feel free to increase the width numeric value depending on the size of your navigation.
Best regards,
Bojan
Hello and thanks for the answer but it doesn’t seem to work this way… any clue?
Best regards,
Hey emiko356,
Could you please provide a link to your website so I can take a look?
Best regards,
Bojan
I found a way but doesn’t seem optimal:
.main-navigation ul {
margin: 0;
margin-left: 455px;
list-style: none;
}
Hi again,
Please try adding this:
.main-navigation ul {
margin-left: auto;
margin-right: auto;
width: 690px;
}
This should center the navigation.
Best regards,
Bojan
great, it worked ! thanks a lot
The last script centers the menu, but the search icon disapears when you make a narrow view with the browser (simulate mobile)