• Resolved chappie

    (@chappie)


    I fondly imagined that having given an image an internal link in the Media Library description area would attach the hyperlink to it wherever I used the image. Apparently not: I used such an image in a footer text widget and it published without its href.

    So do I have to re-enter the href (linking to my home page) manually in the widget? If so, should it be inside the image tag or outside?

    Thanks for any help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You’ll have to add the hyperlink to the image manually in the text widget. It will go outside the image tag like this:
    <a href="/"><img src="<path to your image>" width="" height="" alt="" title="" /></a>
    Of course, you should include the width and height of the image in the image tag to speed loading, as well as having the “alt” and “title” tags in there for SEO.

    Thread Starter chappie

    (@chappie)

    That did it. Thank you linux4me2.

    I did go cross-eyed though as it took me three attempts to get all the tags/syntax in the right place, even though you gave me a perfect example – maybe I should try using a plugin next time.

    I’m glad you got it working.

    There’s a definite learning curve involved with HTML, but it’s worth learning. It’s like learning a new language.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘image href’ is closed to new replies.