Title: [Plugin: Image Widget] Image Link &#8211; Beyond Image
Last modified: August 19, 2016

---

# [Plugin: Image Widget] Image Link – Beyond Image

 *  [pixelmasher](https://wordpress.org/support/users/pixelmasher/)
 * (@pixelmasher)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-image-widget-image-link-beyond-image/)
 * So I was wondering how you could get the hotlink on the image to only be the 
   image. The link seems to show up in the whole widget, not just the image.
 * [http://www.yourexodus.com/wordpress/](http://www.yourexodus.com/wordpress/)
 * Thanks for any assistance on this.
 * Justin

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Peter Chester](https://wordpress.org/support/users/peterchester/)
 * (@peterchester)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-image-widget-image-link-beyond-image/#post-1871035)
 * you can override the widget template in your theme.
 * from the readme:
 * > The Image Widget comes with a default template for the widget output. If you
   > would like to alter the widget display code, create a new folder called “image-
   > widget” in your template directory and copy over the “views/widget.php” file.
   > Edit the new file to your hearts content. Please do not edit the one in the
   > plugin folder as that will cause conflicts when you update the plugin to the
   > latest release.
 *  [sarah3585](https://wordpress.org/support/users/sarah3585/)
 * (@sarah3585)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-image-widget-image-link-beyond-image/#post-1871046)
 * Just the info I was looking for, is there a way of targetting this new location
   for a certain widgets only?
 * I’ve moved the h3 below the image and linked it for a layout of one widget but
   as default I still want it to use the standard location file.
 *  [neil@gufc.org](https://wordpress.org/support/users/neilgufcorg/)
 * (@neilgufcorg)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-image-widget-image-link-beyond-image/#post-1871065)
 * Can anyone give me the code to remove the “hot link” around the image. I believe
   the portion that needs to be changed is:
    if ( $imageurl ) { echo “<img src=\”{
   $imageurl}\” style=\””; if ( !empty( $width ) && is_numeric( $width ) ) { echo“
   max-width: {$width}px;”; } if ( !empty( $height ) && is_numeric( $height ) ) {
   echo “max-height: {$height}px;”; } echo “\””; if ( !empty( $align ) && $align!
   = ‘none’ ) { echo ” class=\”align{$align}\””; } if ( !empty( $alt ) ) { echo ”
   alt=\”{$alt}\””; } else { echo ” alt=\”{$title}\””; } echo ” />”;

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[Plugin: Image Widget] Image Link – Beyond Image’ is closed to new replies.

 * ![](https://ps.w.org/image-widget/assets/icon-256x256.png?rev=2489603)
 * [Image Widget](https://wordpress.org/plugins/image-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/image-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/image-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/image-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/image-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/image-widget/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [neil@gufc.org](https://wordpress.org/support/users/neilgufcorg/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-image-widget-image-link-beyond-image/#post-1871065)
 * Status: not resolved