• Resolved midnightferret

    (@midnightferret)


    I added this block of code into my sidebar — I am doing the wordpress theme tutorial found here: https://www.urbangiraffe.com/2005/04/30/themeguide3/

    <div id="author">
    <a href="/about" title="View my biography">
    <img border="0″ src="<?php bloginfo('template_url') ?>/images/dustbicon.jpg" alt="photo"/>
    </a>
    </div>

    The picture does not appear, only the alt title does.
    There was an issue with copying and pasting because the quotes were altered, but I carefully went through and changed them all. I suspected the problem was with the template_url tag, but I got rid of the whole bloginfo element and tried to “hardcode” the image url in, and no luck. The tutorial instructed me to change the “template_url” tag to “something appropriate,” but I apparently have no clue what that is, although I tried several different things and tried to read about template tags!

    If anyone has any suggestions or needs more info from me, let me know. Thanks so much!

Viewing 5 replies - 1 through 5 (of 5 total)
  • There is still one missing piece… where exactly is your photo?

    If you meant the /images/ folder in your theme’s directory, then use:
    <?php bloginfo('stylesheet_directory'); ?>/images/eetc...

    Thread Starter midnightferret

    (@midnightferret)

    Oh, sorry, the image is located in:

    https://www.midnightferret.com/wp-content/themes/monkeymagic/images/dustbicon.jpg

    Keep in mind I am doing this to learn how themes are made — that’s why it’s so ugly. ??
    I changed the line to

    <img border="0″ src="<?php bloginfo('stylesheet_directory') ?>/images/dustbicon.jpg" alt="photo"/>

    But it still didn’t work. I am gong to check my configuration because maybe I put something in wrong and it’s not getting the correct address?

    Only thing I see that could be a problem is that in your source the path is //yoursite.com/full/path, and the link in the forum is w w w yoursite.com/full/path.

    The code reads:

    img http: //midnightferret.com/

    wp-content/themes/monkeymagic/images/dustbicon.jpg=""

    The “src” is missing, which would account for the lack of an image. Editing error when changing the code, perhaps?

    Thread Starter midnightferret

    (@midnightferret)

    Ok, I figured it out.

    I left out a quote when I was changing them. I should have known! Thanks for a the help guys!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘eyeball this: is there a reason it doesn’t work?’ is closed to new replies.