WordPress.org

Ready to get started?Download WordPress

Forums

Theme: Match] Can't center header image (9 posts)

  1. Hcogdill
    Member
    Posted 3 months ago #

    I'm unable to center my main header images. They are sitting slightly to the left. I've tried different css code to fix, but none that work on my theme. http://www.endopals.com

  2. tullphd
    Member
    Posted 3 months ago #

    inspecting element:
    <img src="http://www.endopals.com/blog/wp-content/uploads/2014/05/cropped-embrace-you-1700px1.jpg" class="img-responsive" alt="">

    you don't have align center in the code!

  3. Hcogdill
    Member
    Posted 3 months ago #

    Thank you! Can you tell me what to add and where?

  4. tullphd
    Member
    Posted 3 months ago #

    go to appearance/ theme options/ header, from the WP dashboard navigation,

    you should have options to do several things,

    since I don't have your theme installed on a site in driving blind here.
    also look at
    appearance/editor, and look at the right side of screen, for the header php section.

    in this php code just examine it to become familiar with the layout of your header in the site.

    Question.
    Are you using a child theme, or just a main theme?

    because you will want to avoid making changes to the main theme php code here , But if you have a child theme activated you can make these changes in this area to not affect the main theme. This is so that when the theme updates you will lose any changes made to this code when the theme is updated.

    you are looking for the header align statement for this item to function correctly.

  5. Hcogdill
    Member
    Posted 3 months ago #

    I believe I'm only using a main theme...no child theme?

  6. tullphd
    Member
    Posted 3 months ago #

    this should be corrected to avoid future issues affecting your site.

  7. Hcogdill
    Member
    Posted 3 months ago #

    Working on that now. Once the child theme is installed, the header solution will be to add code in my header.php to align center. Is that correct? I'll keep you posted on how it goes.

  8. esmi
    Forum Moderator
    Posted 3 months ago #

    the header solution will be to add code in my header.php to align center. Is that correct?

    You will probably be adding some additional CSS to your child theme's stylesheet. Try using Firefox with the Firebug add-on for this kind of CSS troubleshooting. Or use whatever developer tool is available in your web browser.

  9. tullphd
    Member
    Posted 3 months ago #

    Correct good luck, wordpress is fun after you learn all the rules...
    and then you might learn how to even <break> the rules for a special implementation....

    Also in you theme menu features be sure to look for any place that allows your preference to be established. With out the them installed here I can only advise as above.

Reply

You must log in to post.

About this Topic