• sayze35

    (@sayze35)


    How to do it in 2019 child theme? Every css option I’ve tried, nothing moves it from the left side? The css below would seem to work, but none do?

    .site-branding {
    width: 100%;
    text-align: center;
    }
    .site-logo .custom-logo-link { border-radius: 0;
    text-align: center!important;
    }

    .site-header .main-navigation {
    text-align: center;
    }

    ps. just making sure, the child style.css is the SAME as adding it to the Customizer in Additional CSS, correct?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter sayze35

    (@sayze35)

    OR thinking… I should just edit the header.php file for the child?

    Jarret

    (@jarretc)

    Hi, do you have a live site where we can take a look at the code closer and then make a possible suggestion?

    Thread Starter sayze35

    (@sayze35)

    Thanks Jarret,
    but I just added a child header file and replaced content in the site-branding-container area. That was easy. It’s odd that was such an easy task, but trying to center the logo just wasn’t working.

    Question, so various other template files seem to be all complicated with the WP team who created the 2019 theme, to begin with. I’m sure they know exactly how and why they did things. I can write code as well, but I’m sure there could be changes or existing code from the theme that, IF REMOVED:
    a) I can replace it easy with what I want it to do
    b) If removing it, there can be other functionality that I’m removing, but don’t know it?

    So I could remove something, that I actually want?
    HOWEVER, the details and document is very limited? Is there a site that explains what the templates do for 2019?

    Is there a good manual on the 2019 theme that explains things, how/what/why the code does?

    thanks

    Jarret

    (@jarretc)

    Hi, it is definitely possible that if you go to modify some code that you may remove something that causes the theme to function properly.

    If the site you’re working on isn’t something that is in production and live, you can of course make these changes to see if anything breaks. Then just undo the changes in your text editor if something bad does happen.

    There isn’t anything specific to TwentyNineteen or any of the other default themes that explains specific code chunks in detail. Most of it is all just PHP, so as long as you have some understanding of PHP you can usually get a good idea of what is going on.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘center logo in header 2019’ is closed to new replies.