WordPress.org

Forums

Image Widget
Linking the Description (4 posts)

  1. Jeff
    Member
    Posted 3 years ago #

    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 );

    to

    $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.

    http://wordpress.org/extend/plugins/image-widget/

  2. Peter Chester
    Modern Tribe
    Plugin Author

    Posted 3 years ago #

    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.

  3. Peter Chester
    Modern Tribe
    Plugin Author

    Posted 3 years ago #

    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)

    Thanks!

  4. Peter Chester
    Modern Tribe
    Plugin Author

    Posted 3 years ago #

    This is live with the 3.3.4 version!

    Thanks again.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Image Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic