Support » Plugins and Hacks » [Plugin: Image Widget] Linking the Description

[Plugin: Image Widget] Linking the Description

  • Often I need to link the description as well as the image. This is a bit of toughie with the plugin as is (which I love and use frequently). But a small addition could make it easier for others. In /views/widget.php, if line 43 is changed from

    $text = apply_filters( ‘widget_text’, $description );


    $text = apply_filters( ‘widget_text’, $description, $instance );

    then the filter has the ability to pass the link info, if necessary to the user.

    Thanks again for the great plugin.


Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Peter Chester


    I’ll make that update. Great suggestion.

    Alternatively, you can filter the entire widget output php by filtering the path in ‘sp_template_image-widget_widget.php’ to a path in your template and you can completely rearrange the widget output that way.

    Plugin Author Peter Chester


    I’m actually updating it to match the args for widget():

    $text = apply_filters( ‘widget_text’, $description, $args, $instance );

    This will go out in the next update with a credit to ‘Jeffrey Zinn’ (unless you have a more specific credit request)


    Plugin Author Peter Chester


    This is live with the 3.3.4 version!

    Thanks again.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Image Widget] Linking the Description’ is closed to new replies.