WordPress.org

Ready to get started?Download WordPress

Forums

WPFolio
Centering the main menu (7 posts)

  1. ador
    Member
    Posted 1 year ago #

    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

    http://wordpress.org/extend/themes/wpfolio/

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

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

    Have you either?

  3. ador
    Member
    Posted 1 year ago #

    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

  4. Andrew
    Forum Moderator
    Posted 1 year ago #

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

  5. ador
    Member
    Posted 1 year ago #

    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

    http://charmingweb.com/blog/site2/

  6. Andrew
    Forum Moderator
    Posted 1 year ago #

    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;
    }
  7. ador
    Member
    Posted 1 year ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags