Forums

add link to image in text widget (4 posts)

  1. danatiber
    Member
    Posted 2 years ago #

    hello- i put an image in my text widget, but now i want to add a link to it - how is this done?

    this is the code i put in the widget:

    '<img src="http://www.sigidi.com/wp-content/uploads/2010/02/כפתור1-copy-copy.png" width="220"/>'

    the site is http://www.sigidi.com

  2. apljdi
    Member
    Posted 2 years ago #

    Just wrap the image in an anchor tag like you would any other link. For example:

    <a href="http://www.sigidi.com/"><img src="http://www.sigidi.com/wp-content/uploads/2010/02/כפתור1-copy-copy.png" width="220"/></a>
  3. danatiber
    Member
    Posted 2 years ago #

    thanks - but how can i link it to a page??

  4. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    to a page in your WP install? They all have permalinks....use the same code, but with the permalink to that page
    <a href="http://www.sigidi.com/permalink/goes/here"><img src="http://www.sigidi.com/wp-content/uploads/2010/02/כפתור1-copy-copy.png" width="220"/></a>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags