WordPress.org

Ready to get started?Download WordPress

Forums

Image Widget
[resolved] Latest Update Issue (4 posts)

  1. dabernathy89
    Member
    Posted 12 months ago #

    The latest update added an inline style of 'max-width: 100%;', so to override it I have to use '!important', which isn't ideal. Would be nice if there were an option to remove that, at least.

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

  2. Peter Chester
    Modern Tribe
    Plugin Author

    Posted 12 months ago #

    Hi dabernathy89, there is a way to override it. I think this should do it:

    add_filter('image_widget_image_maxwidth', '__return_null');

  3. Peter Chester
    Modern Tribe
    Plugin Author

    Posted 12 months ago #

    Sorry, to be clear, add this to your functions file:

    <?php add_filter('image_widget_image_maxwidth', '__return_null'); ?>

  4. dabernathy89
    Member
    Posted 12 months ago #

    That should work great, thanks!

Reply

You must log in to post.

About this Plugin

About this Topic