Home>Support>Center Sub Menus
  1. 9 years, 1 month ago Andrew Misplon
    Hi, I Work Here

    Hi Jason

    Thanks for reaching out.

    It looks like you’ve managed to resolve. Let us know if you need any further help.

  2. 9 years, 1 month ago Jason Bonner

    The problem is still there. If you hover over “Get Connected” and “New to Valley?” you will noticed that the left sides of the menus are justified with the left side of the main menu button but the right side extends beyond, off-setting the sub menu text from the main menu heading.

  3. 9 years, 1 month ago Andrew Misplon
    Hi, I Work Here

    Thanks.

    Did you make the original edit to style.css directly?

  4. 9 years, 1 month ago Jason Bonner

    I centered the menu in the Customization menu for the theme and I’ve tried to make a few changes to the CSS, but nothing that had affected the sub menu’s centering so far.

  5. 9 years, 1 month ago Andrew Misplon
    Hi, I Work Here

    Super, thanks for the further info. Let me climb into this tomorrow when I’m a bit fresher. I see the initial challenge to centering, I just need to dig a bit deeper.

    Chat then.

  6. 9 years, 1 month ago Andrew Misplon
    Hi, I Work Here

    Can we start out by restoring style.css to it’s original form? All WordPress themes overwrite their own folder during theme updates so changes made here aren’t update safe. You’re welcome to back the file up before restoring. There are one or two small modifications that have been made. Once restored we’ll be working from the same base which makes this much simpler.

    Here is a link to the Vantage Premium ZIP file:

    Private Snippet

    Download the folder, un-zip, open style.css, copy the contents and paste it into Appearance > Editor > style.css. You can backup the contents of that file to a text file before doing so.

    Next, go to Appearance > Custom CSS and remove the contents of that field:

    padding: 20px 35px;
    

    That’s not a complete rule so it can go.

    Next, paste the following:

    /* Main Menu */
    
    .main-navigation ul li {
    width: 140px;
    }
    
    .main-navigation ul ul li {
    text-align: center;
    }
    
    
    .main-navigation ul ul a {
    width: 140px;
    }
    

    Adjust the two 140px values to suit your menu. Setting this width is the only way I can see at the moment to center everything.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More