Support » Fixing WordPress » Center header picture in Blaskan theme

  • Resolved carwashlive

    (@carwashlive)


    Hello,

    I have web site carwashlive.com I’m trying to center the picture on top of web site. I was able to center the text by installing<center><header id=”header” role=”banner”><center> Under Templates, then to header. I can’t find out how to center the picture.

    PLEASE HELP… Its driving me nuts 🙂

    I have read forum and tried almost all of the suggestions.

    Thank You
    Christopher
    [sig moderated as per the Forum Rules]

Viewing 7 replies - 1 through 7 (of 7 total)
  • WPyogi

    (@wpyogi)

    <center> is deprecated code — don’t use it. But the reason it is left aligned is that float: left; is assigned to it — see your CSS file line 524. Replace that with:

    width: 575px;
    margin: 0 auto;

    carwashlive

    (@carwashlive)

    Thank You WPyogi.

    How do I find line 524 and where is css under Templates?

    Is css Style.css?

    Thank You
    Christopher

    WPyogi

    (@wpyogi)

    Is css Style.css?

    Yes, but are you using a child theme or do you have a custom CSS option or plug-in? If you edit the themes files, you will lose all your changes when the theme is updated.

    carwashlive

    (@carwashlive)

    WPyogi,

    I did not know it was child theme. I did do update and that is why the picture went to left. I will not do update again. I scrolled down to line 524 in css and it is blank. img {
    border: 0;
    }
    This is code above it. Should I insert code you posted there?

    Thanks
    Christopher

    WPyogi

    (@wpyogi)

    Yes, try that.

    But BTW, you really should create a child theme — you don’t have one which is why the changes were lost. Not updating is not a good strategy long-term…as some updates are important for security and/or functionality reasons.

    WPyogi

    (@wpyogi)

    Oops, sorry what I said above is not right — you are not looking at the right CSS — it’s this one:

    figure img {
        float: left;
    }

    Change the float: left to what I posted earlier…

    carwashlive

    (@carwashlive)

    WPyogi,

    Thank You SOO much. Thanks for your patiences. That did IT. SO HAPPY.

    AGAIN – THANK YOU

    Christopher
    [sig moderated as per the Forum Rules]

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Center header picture in Blaskan theme’ is closed to new replies.