Title: rel= attribute?
Last modified: August 20, 2016

---

# rel= attribute?

 *  Resolved [niroc](https://wordpress.org/support/users/niroc/)
 * (@niroc)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/rel-attribute/)
 * Until this latest version I have been able to add `rel="shadowbox"` to
 * `echo '<a>widget_options['classname'].'-image-link" href="'.esc_url($link).'"
   target="'.esc_attr($linktarget).'">';`
 * in widget.php but now I can’t see how to achieve the same effect. I would appreciate
   some guidance please.
 * [http://wordpress.org/extend/plugins/image-widget/](http://wordpress.org/extend/plugins/image-widget/)

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

 *  Thread Starter [niroc](https://wordpress.org/support/users/niroc/)
 * (@niroc)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/rel-attribute/#post-3497704)
 * It seems nobody knows how to do this, so I have reverted to Image Widget 3.3.4
   which still works with WP 3.5.1.
 *  Thread Starter [niroc](https://wordpress.org/support/users/niroc/)
 * (@niroc)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/rel-attribute/#post-3497721)
 * With some guesswork I have figured this out, so if anyone else comes looking,
   this seems to work for v. 4.0.6
 * In image-widget.php, around line 254 replace
 * `$output = '<a';`
 * with
 * `$output = '<a rel="shadowbox"';`
 *  [Ignacio Galdames](https://wordpress.org/support/users/caminantestelar/)
 * (@caminantestelar)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/rel-attribute/#post-3497746)
 * i made a contribution to the plugin beacuase i had the same problem
 * [https://github.com/caminantestelar/image-widget](https://github.com/caminantestelar/image-widget)
 * i hope it helps
 *  [Marklcm](https://wordpress.org/support/users/marklcm/)
 * (@marklcm)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/rel-attribute/#post-3497747)
 * thank you caminantestelar, this is excellent
    lets the hope ‘Modern Tribe’ incorporate
   it in the next release

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

The topic ‘rel= attribute?’ 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/)

 * 4 replies
 * 3 participants
 * Last reply from: [Marklcm](https://wordpress.org/support/users/marklcm/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/rel-attribute/#post-3497747)
 * Status: resolved