WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Adding a linked image to text widget (10 posts)

  1. Showgirl
    Member
    Posted 5 years ago #

    I am having trouble creating a linked image in the text widget in the sidebar. I have been using

    <a href=”http://www.lolafayemi.com” title=”test”><img src=“http://www.alignedandthriving.com/images/healthy_sandwich.jpg” alt=”test” /></a>

    and getting no image come up and a dodgy link of http://www.alignedandthriving.com/”http://www.lolafayemi.com”.

    Can anyone tell me how to get the image to show up and how to get the link going to the right place. The site is at http://www.alignedandthriving.com and it's the right sidebar.

    Thanks

  2. Shane G
    Member
    Posted 5 years ago #

    Hi,

    You can do it from text widget by adding simple code of the image. For more details you can refer:

    Image in sidebar

  3. Roy
    Member
    Posted 5 years ago #

    I see curled "s, are you pasting from Word?

  4. Showgirl
    Member
    Posted 5 years ago #

    Hi

    Shane G - that didn't work all it showed up was the url in the sidebar :(

    Gangleri - yes I am pasting from Word, does that matter? If yes where should I paste from?

  5. Showgirl
    Member
    Posted 5 years ago #

    Shane G - ignore me, I missed something off it does work but do you know how to make the image link to a page?

  6. Showgirl
    Member
    Posted 5 years ago #

    Sorted! For anyone else with the same problem use:

    <a href="linkurl"><img src="imageurl" />

    Thanks for your help Shane G.

  7. boldizar
    Member
    Posted 5 years ago #

    I've been trying to figure out the same problem. But as a total noob, I don't even know what "imageurl" should actually say. Is it "http://www.mydomain.com//public_html/blog/wp-content/themes/atahualpa/images/imagename.gif" ??

    (If so, it's not working...)

    Thanks!
    Alex

  8. @mercime
    Volunteer Moderator
    Posted 5 years ago #

    Showgirl: don't forget to add the closing link tag </a>

    <a href="linkurl"><img src="imageurl" /></a>

  9. Ryan S
    Member
    Posted 5 years ago #

    @boldizar

    Yes, it is correct. The images URL should be the actual link of the image. You can use it like this:

    < a href="linkURL"><img src="ImageURL">

    Please make sure to use all tags carefully.

    And delete the space between < and a

  10. vitallywell
    Member
    Posted 4 years ago #

    Showgirl,

    Did you get it figured out? I get the same results as you. If you did figure it out, I would really appreciate the code. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic