WordPress.org

Forums

Image in Footer? (6 posts)

  1. frontlines
    Member
    Posted 9 years ago #

    How can I get an image link inside the footer? I want to have an image in the footer that refers back to another site, but I end up with an image placeholder instead. What am I doing wrong?

    I'm currently trying this method:

    a href="http://www.frontlinescreative.com" target="_blank"><img src="<?php bloginfo('stylesheet_directory'); ?> h ttp://www.davidmassengill.org/tag.gif" />

    I tried just calling up the image, but didn't even get the placeholder. With this method I get the holder, but no image. The only post I've found that references footer images gives this method as the answer, but for the life of me I can't get it to work.

    Any ideas? Thanks in advance...

  2. Chris_K
    Member
    Posted 9 years ago #

    When you view source on the rendered page, what's the URL for the image (tag.gif)?

    When you copy that url from the source and paste it into your browser, is it found?

  3. frontlines
    Member
    Posted 9 years ago #

    the URL is referenced in the last part of the code I posted (www.davidmassengill.org/tag.gif), and is found when typed in directly.

  4. Chris_K
    Member
    Posted 9 years ago #

    Bet you didn't view source yet.

    What's this line generate?

    "><img src="<?php bloginfo('stylesheet_directory'); ?> h ttp://www.davidmassengill.org/tag.gif" />

  5. frontlines
    Member
    Posted 9 years ago #

    I don't know...I'm not sure what I'm supposed to type in directly from that.

    I don't even know what all that means. I found a post from Moshu saying to write img src=... with all that <?php blah blah blah, so I copied it and just inserted my image reference, which <b>does</b> work.

    So if I take that out, what should I put?

    P.S. - There's an extra space in the h ttp above so I could get it to show up. Otherwise it just made a link out of what I typed. The actual code has http:...

  6. Chris_K
    Member
    Posted 9 years ago #

    If the image is at http://www.davidmassengill.org/tag.gif, I'd wager that's the link you want to use in your <img> tag, eh?

    Probably not
    <img src="<?php bloginfo('stylesheet_directory'); ?> http://www.davidmassengill.org/tag.gif" />

    So... to help draw the complete picture: have you considered using:
    <img src="/tag.gif" />?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.