Home>Support>Centering a Custom Menu

Centering a Custom Menu

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

Hello,

I’m working in the SiteOrigin CSS visual editor. By default, the menu I have aligns to the left. How can I center the entire menu on the screen? I imagine if I can center the .menu-main-menu-container that’ll do it. What CSS code will do this?

Thank you in advance,

Daniel Englert

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 7 years, 9 months ago Alex S
    Hi, I Work Here

    Hi Daniel,

    Do you have a public URL where we can take a look at your setup?

  2. 7 years, 9 months ago Daniel Englert

    Hello,

    Yes, http://www.minnesotaflowerfarm.com

    Daniel

  3. 7 years, 9 months ago Alex S
    Hi, I Work Here

    Hi Daniel,

    Please navigate to WP AdminAppearanceCustom CSS and find:

    #site-navigation.main-navigation {
      text-align: center;
      float: left;
    }
    

    Replace with:

    #site-navigation.main-navigation {
      text-align: center;
      float: none;
    }
    

    How does that look?

  4. 7 years, 9 months ago Daniel Englert

    That looks great!

    Sorry I’ve been slow to reply.

    Thank you for your help,

    Daniel

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