• Resolved Bergskas

    (@bergskas)


    I´m trying to center align the site title and menu items but I can´t figure out how to do this. Can you help me?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hey Bergskas,

    How are you doing today?

    This should be possible with some custom CSS. Could you please post link to your site where I can see this so I can try to help with some code?

    Cheers,
    Bojan

    Thread Starter Bergskas

    (@bergskas)

    Here´s the site:
    http://www.lindanicolaysen.com

    Hey again,

    Thanks for the link. Please try adding the following CSS code in the style.css file of your child theme or if your theme doesn’t have custom CSS tab add it in your site using the following plugin:

    http://wordpress.org/plugins/simple-custom-css

    media screen and (min-width: 783px) {
    div#site-title-wrapper {
        float: none;
    }
    
    .main-navigation ul.nav-menu {
        text-align: center;
    }
    }

    If the code doesn’t work please keep it added and let me know so I can take a look.

    Cheers,
    Bojan

    Thread Starter Bergskas

    (@bergskas)

    Hi again,

    The code worked on the menu items, but not the site title.

    The code is still added. =)

    Theme Author Tomas Mackevicius

    (@tomasm)

    You already have these rules at the bottom of your child theme’s style.css:


    @media screen and (min-width: 783px) {
    div#site-title-wrapper {
    float: none;
    }
    … other rules…
    }

    amend it with:


    @media screen and (min-width: 783px) {
    div#site-title-wrapper {
    float: none;
    }
    .site-title, .site-header .site-description {
    text-align: center!important;
    }
    … other rules…
    }

    And I suggest put those rules to section 15.1, otherwise you might loose track of your changes. It also looks, that 15.1 media query rules were closed sooner than necessary, but I will let you check your file 😉

    Thread Starter Bergskas

    (@bergskas)

    Thanks Tomas, both page title and menu are now centered. =)

    As for the media query rules being closed sooner than necessary,
    I’ve looked it over so many times now, and I don´t get/see it. Please tell me! =D

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Center blog title and menu items’ is closed to new replies.