Forums

[resolved] Add Image to Header Text (4 posts)

  1. deerfield01
    Member
    Posted 2 years ago #

    Hello I am new to wordpress and have searched around for different solutions to my problem.I am trying to add a logo to the top left corner I have tried different solutions however I haven't found one yet that doesn't overwrite the text. The theme does allow for a logo however that removes the text I would like to have both. Thnx for any help its driving me nuts :).

    site

  2. MAS
    Member
    Posted 2 years ago #

    #header h1, #header h1 a {style.php (line 1)
    color:#FFFFFF;
    font-size:1.5em;
    font-weight:normal;
    text-decoration:none;
    text-shadow:#1659AC 0 1px 3px;
    background: url(images/[your header img]) no-repeat
    }

    or write this <img src="<?php bloginfo('template_directory');?>/images/[header img]">in your php

  3. deerfield01
    Member
    Posted 2 years ago #

    I tried both of those and neither worked. The image never came up and the code messed up the entire layout unless I inserted in the wrong place. Any other suggestions??

  4. deerfield01
    Member
    Posted 2 years ago #

    Okay I did manage to add the logo to the header by uploading my logo to the images folder of my theme and then adding the following CSS to style.css

    #header {position:relative;
    background: url(images/logo.jpg) left top no-repeat;
    padding-left: 170px;
    }

    Now I have to work on the positioning. I'm sure this is not the best way to resolve this issue however I hope it helps someone else.

Topic Closed

This topic has been closed to new replies.

About this Topic