Adding image links to my blog

  • Author
    Posts
  • #346247

    kiyansobhani
    Member
    Original poster

    Does anyone know how to add images with links to your blog? And I don’t mean making a post with a link in it, but rather a permanent imagine somewhere on the homepage with a link to it.

    Thanks,

    My blog is http://kiyansobhani.com/

    The blog I need help with is: kiyansobhani.com

    #346439

    1tess
    Moderator Emeritus

    kiyansobhani,
    Use a text widget to put it into your sidebar. How to make an image link:

    A text link normally looks like this:
    <a href="URL_OF_WEBSITE">TEXT_TO_CLICK</a>
    if you want to a picture to serve as a link, instead of "TEXT_TO_CLICK" in between the tags, you place an image tag, which looks like this:
    <img src="URL_OF_IMAGE"/>
    To put them together, they would look like this:
    <a href=""URL_OF_WEBSITE"> <img src="URL_OF_IMAGE"/> </a>
    Instead of the text becoming a link, the image becomes a link.

    #346445

    1tess
    Moderator Emeritus

    typo alert (extra ” marks):
    <a href="URL_OF_WEBSITE"><img src="URL_OF_IMAGE"/></a>
    To make the link open in new page:
    <a href="URL_OF_WEBSITE" target="_blank"> <img src="URL_OF_IMAGE"/></a>
    and for some reason, wp seems to insist on alt=”” />

    <a href="URL_OF_WEBSITE"><img src="URL_OF_IMAGE" alt="" /></a>
    or
    <a href="URL_OF_WEBSITE" target="_blank"><img src="URL_OF_IMAGE" alt="" /></a>

    #346447

    The image “alt” tag is part of the web standard, and Google at least will not index images without it.

    #346449

    1tess
    Moderator Emeritus

    Ah, so that’s it! Thanks. I always use it, and get a lot of hits on images, so now I know why!

    #346450

    1tess
    Moderator Emeritus

    Well, that is, I fill it in:
    alt=”descriptive words”

The topic ‘Adding image links to my blog’ is closed to new replies.