• I’m just looking for the easiest way to add a log at the top of a theme which doesn’t have a default logo set in the the code.

    I know this should be done in header.php, and the placement will vary based on where I want the banner, but I’m not sure what code to use.

    Do I have to add code within div tags?

    Thanks for any help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Yes it would go in header.php
    You only need CSS div tags if you want to modify the formatting.
    Maybe something like:

    <div id=”mylogo”>
    <img src=”/pathto/logo.jpg” title=”MyTitle” alt=”Alt text” /> </div>

    Then in your theme’s style.css you need:

    #mylogo{
    float: left;
    padding: 3em 0 0 2em;
    position: relative;
    z-index: 10;
    }

    Thread Starter moessap

    (@moessap)

    Thanks for the reply.

    I actually figured this out and gave it a try, but the logo didn’t show up.

    I added the code to header.php, then I added in style.css:

    #logo {
    width: 550px;
    height: 175px;
    float: left;
    }

    It worked partially… a blank block of the size I specified showed up, but for some reason no logo.

    I just tried your code in there as well, and it still won’t show up.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding Logos or Banners’ is closed to new replies.