• Resolved Cr00zng

    (@cr00zng)


    Is there a difference how WordPress handles HTML image code within the header? I am trying to place a logo into the header and it sort of works; the image is not displayed, but the alternative text is. Here’s the related CSS code from the style.css file:

    img.imgleft {
    float: left;
    border: 0px;
    padding: 26px auto 26px;
    }

    And this is the HTML code for placing the image:

    <div id="header">
    		<a class="header" href="<?php bloginfo('url'); ?>"><img class="imgleft" img src="img/logo.jpg" alt="logo" height="58" width="197" /><h1><?php bloginfo('name'); ?></a></h1>
    		<?php bloginfo('description'); ?>
    	</div>

    No matter what I do with the “img” tag, the logo does not show up just the alternative text.

    The same ,or other images defined within the CSS as:
    "background-image: url("img/logo.jpg")
    show up with no problems.

    The logo, together with other images, had been placed into the “img” folder and the source code for WordPress edited with DreamWeaver. Under “regular” HTML code, the above logo placement works just.

    Is there any special way WordPress processes images in the headeer?
    TIA…

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Header image placement…’ is closed to new replies.