Support » Themes and Templates » [Theme: WPFolio] Centering the main menu

[Theme: WPFolio] Centering the main menu

  • Hi, I enjoy working with this theme, it is fabulous! I have a request to center the sf nav, or main menu and I just cant seem to do it. Could you help me figure this out? Your help is appreciated. Thank you

    I am using the latest version of theme & WordPress


Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Andrew Nevins


    Forum moderator

    You can tweak themes’ appearance by using CSS (Cascading Style Sheets) through a Child Theme or Custom Style/CSS plugin.

    Have you either?

    Yes. I had to repair a site using this theme from a bad hack. So I upgraded everything and now I have it setup on dev server w/ child theme, all modifications are on the child.

    I have tried several tweaks but the menu persists in staying left aligned. I appreciate your help

    Moderator Andrew Nevins


    Forum moderator

    May you link the website relevant, or Pastebin.com the HTML and CSS for one relevant page?

    here is the web site link. I am trying to get the css plugin you mentioned to work. Thank you very much for your time on this and your help


    Moderator Andrew Nevins


    Forum moderator

    You should align block elements to the centre with the CSS style margin: 0 auto, however you also need to set a width along with that style.

    When setting a width, consider whether your navigation menu will expand and try to use a width that caters for this.

    For example,
    If your current navigation bar were to be centred as it is now, the CSS would be something like

    .sf-menu {
     width: 200px;
     margin: 0 auto;

    thank you so much for your help! Finally the menu has responded. I had not thought about the width. I might have to tweak that for the main site but at least this is some major progress! Thanks again very much appreciated!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Theme: WPFolio] Centering the main menu’ is closed to new replies.