WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Picture in sidebar (16 posts)

  1. davey579
    Member
    Posted 7 years ago #

    When i try to put a picture in my sidebar (with the <img scr=".."> tag) i get this thing:

    http://www.dakzoekje.nl/download/picwrong.gif

    The path to the picture is right, what do i wrong?

  2. Guzzo
    Member
    Posted 7 years ago #

    Double-check the spelling of the image, and make sure it's not a .jpg or .png instead of a .gif file.

  3. davey579
    Member
    Posted 7 years ago #

    Spelling is correct, and it doesn't matter if i use .gif or .jpg. I really doesn't understand how i can fix this.

  4. KatGirl
    Member
    Posted 7 years ago #

    how are you calling the image? what code are you using? images really need height and width defined so that it renders correctly. ie

    [img src="image path.jpg" width="80px" height="50px" alt="description of image" /]

    Also if you're inserting it via template, and not your post, you may need to stipulate the absolute path: http://yourdomain.com/wp-images/yourimagename.jpg

    for it to work. I've found that some templates work with relative paths ie: /wp-images/yourimage.jpg and others don't.

  5. canarygirl
    Member
    Posted 7 years ago #

    oops sorry

  6. dpga10
    Member
    Posted 6 years ago #

    HELP! I have tried everything!
    <img src="http://public_html/wp-content/uploads/2007/09/dpatdesk070822.jpg" alt="Smile!" />
    How it came off my server, then replaced the Underscore with a dot/period in the public_html folder. (See Below.)
    <img src="http://public.html/wp-content/uploads/2007/09/dpatdesk070822.jpg" alt="Smile!" />
    The "Smile!" shows, but no .jpg :-?

    TIA, DP

  7. dpga10
    Member
    Posted 6 years ago #

    I just added "mydomain.com" after http:// both ways, ... still nothing, but 'alt' i.e. Smile!

  8. shadow
    Member
    Posted 6 years ago #

  9. dpga10
    Member
    Posted 6 years ago #

    No shadow, I have not got picture to show yet.

    dpgatten.com

  10. dpga10
    Member
    Posted 6 years ago #

    Pardon me! Yes, it is still in the 'upload' under 'manage'
    It should be at:
    http://dpgatten.com/public_html/wp-includes/images/DPAtDesk070822.jpg

    This is how I have it in the widget:
    <img src="http://dpgatten.com/public_html/wp-includes/images/DPAtDesk070822.jpg" alt="Smile!" />

    The Smile! shows in sidebar, but no picture.
    Any Ideas?
    Just a NuBee! TIA,DP

  11. shadow
    Member
    Posted 6 years ago #

    So is this the picture you are trying to show?

    http://www.dpgatten.com/wp-content/uploads/2007/09/dpatdesk070822.jpg

  12. dpga10
    Member
    Posted 6 years ago #

    Yes sir!

    BTW! I added more above your post.

    It is at:
    http://dpgatten.com/public_html/wp-content/uploads/2007/09/DPAtDesk070822.jpg

    also, where it shows up in the admin/manage/upload

  13. shadow
    Member
    Posted 6 years ago #

    Ok, so use that url I just used [above] and it should show your picture...

  14. dpga10
    Member
    Posted 6 years ago #

    EUREKA! Tnx Bunches! What was I doing wrong? It is there now!

  15. shadow
    Member
    Posted 6 years ago #

    Basically you were calling the picture from the wrong place.

    You do not have to include the /public_html at all in most instances.

  16. dpga10
    Member
    Posted 6 years ago #

    Thank You again Shadow, I guess we can call this one 'Resolved'

    DP, as I am about my FATHER's Business!
    Making A Difference And Helping Other People Reach Their Goals!

Topic Closed

This topic has been closed to new replies.

About this Topic