• I guess I’m missing something…

    I have a hard-coded html img line in my theme, and the image doesn’t work.
    How come? and what can I do to fix it?

    Sorry, I’m new to this.

    -Eric

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter hoss9009

    (@hoss9009)

    Do i need something like this:
    <a href="#"><img src="<?php include ("images/zoot-sidebar.png"); ?>" width="133" height="33" border="0" /></a>
    ?

    Thread Starter hoss9009

    (@hoss9009)

    sorry to be a nag…

    I just don’t get why html code won’t generate in PHP.

    I know it’s probably something simple, I just don’t get how it works.
    ??

    Thread Starter hoss9009

    (@hoss9009)

    ok… apparently you have to write out the full path… i dunno why.

    Because your theme directory isn’t the top level.

    Next time, try something like:

    <img alt="your text" src="<?php bloginfo('stylesheet_directory'); ?>/images/your_image.png" width="16" height="16" />

    for the image link.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘img php’ is closed to new replies.