1. Home
  2. Knowledge Base
  3. Blog Theme Customizations
  4. How to center Blog Navigation (both nav bars in header)

How to center Blog Navigation (both nav bars in header)


NOTE: Starting with OptimizePress version 2.5.11 we introduced a newer theme that has a more modern design, faster loading pages, and better SEO. We would suggest trying out the new OptimizePress Smart Theme. If you have an active updates/support license you should see this in the members hub, along with a downloadable PDF step by step guide on how to use the new Smart Theme

We can no longer provide the older OptimizePress Theme files for download for new sites. If you have an existing site and need to re-install the theme files please contact our support team and they will gladly assist with that. For now, we will still provide updates and support for the older OptimizePress Theme

This guide is for the older OptimizePress Theme version and not for the new Smart Theme

If you want to center the navigation of your blog pages (the navigation bars showing in the header of your blog) You can use the code on this page.

You should add this code to the Blog Settings > Modules > Other Scripts (Custom CSS):

body .navigation ul {

text-align:center;

}

body .navigation ul li {

float: none;

display: inline-block;

text-align: center;

}

body .container .navigation ul {

text-align:center;

}

body .container .navigation ul li {

float:none;

display: inline-block;

text-align: center;

}

Was this article helpful?

Related Articles

Need Support?
Can't find the answer you're looking for? Don't worry we're here to help!
Contact Support