• Is there any way that I can center the menu on my blog? I only have 3 pages and they look kind of awkward just hanging out on the left. I’ve created a child theme, just not sure of the code I’d need to add.

Viewing 1 replies (of 1 total)
  • Theme Author Christine Rondeau

    (@crondeau)

    Hi Carrie,

    Just looking at your child theme css, there’s some PHP code in there.

    Your style.css, should only contain CSS, not php.

    I don’t have the code off the top of my head to center navigation. It will be a bit tricky. It’s doable but may take a few hours of tweaking.

    The CSS you want to adjust is the .main-navigation.

    Try using:

    .main-navigation {
    text-align: center;
    }
    
    .main-navigation ul {
    text-align: center;
    }
    
    .main-navigation li {
    float: none;
    display: inline-block;
    }

    Hopefully this will give you a head start.

    Sorry about the delay in replying. I was on holiday.

Viewing 1 replies (of 1 total)
  • The topic ‘Center Menu – Mon Cahier’ is closed to new replies.