• Resolved mythusmage

    (@mythusmage)


    Yes, I know about the documentation. However, the documentation is scattered hither and yon, and most often written for people for whom Geek is a first language. In addition, the HTML you get when you use the “img” button with the “write post” form doesn’t work. At least not for me.

    So, how does one add an image to a template?

Viewing 8 replies - 1 through 8 (of 8 total)
  • <img src="image.jpg" width="100" height="100" alt="description" />

    Thread Starter mythusmage

    (@mythusmage)

    That’s what I got. Didn’t work. I get the “alt” but not the image.

    And here is where the image is “housed” on my site:

    wp-content/uploads/signatory.gif

    Or:

    wp-includes/images/images/signatory.gif

    You are using the full path to the image?

    Can I see a link? (you can email it to me if you like from my site’s contact form)

    Thread Starter mythusmage

    (@mythusmage)

    Yes. Should I be using the relative path instead?

    If wp-content/uploads/signatory.gif

    Or:

    wp-includes/images/images/signatory.gif

    is your path those are relative.

    shouldn’t your path be /wordpress/wp-content/uploads/signatory.gif
    or
    /wordpress/wp-includes/images/images/signatory.gif

    Since this is a template, its only used for the theme you’ve selected. I tend to put my images in my theme directory (wp-content/themes/default/images/)
    and use a link like
    <img src=”<?php bloginfo(‘template_directory’); ?>/images/signatory.gif” width=”100″ height=”100″ alt=”description” />

    Yes that is the best method arnoldjw ??

    Thread Starter mythusmage

    (@mythusmage)

    Arnoldjw,

    I’ll try that. And thanks.

    Thread Starter mythusmage

    (@mythusmage)

    Update: It worked! Hurray for helpful smart people.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Images and Templates’ is closed to new replies.