WordPress.org

Ready to get started?Download WordPress

Forums

Image Widget
[resolved] rel= attribute? (5 posts)

  1. niroc
    Member
    Posted 1 year ago #

    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/

  2. niroc
    Member
    Posted 1 year ago #

    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.

  3. niroc
    Member
    Posted 1 year ago #

    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"';

  4. caminantestelar
    Member
    Posted 9 months ago #

    i made a contribution to the plugin beacuase i had the same problem

    https://github.com/caminantestelar/image-widget

    i hope it helps

  5. Marklcm
    Member
    Posted 8 months ago #

    thank you caminantestelar, this is excellent
    lets the hope 'Modern Tribe' incorporate it in the next release

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic