WordPress.org

Ready to get started?Download WordPress

Forums

WP Fluid Images
Hides images and has no options (2 posts)

  1. Daniel J. Lewis
    Member
    Posted 2 years ago #

    I've tried using this plugin on a client's site, but the plugin does too much and I've wasted a lot of time tracking down a problem that ended up being caused by WP Fluid Images in Internet Explorer 7.

    The site I'm currently working with is http://beta.upicsolutions.org (may not have WP Fluid Images when you visit). I have three images on the front page that are created from a Page that is included via a Featured Page widget onto the front page.

    When I remove the width and height from the <img>'s, WP Fluid Images hides the images by changing their width to 0% as soon as the script loads. If I set a width and height on the <img>'s, the WP Fluid Image shrinks the images down into icons.

    Again, all of this only happens in IE7.

    I wish WP Fluid Images had an admin interface where I could selectively disable some of its functions. Like I only want the width- and height-stripping from image uploads, I don't want the other automated script functions.

    http://wordpress.org/extend/plugins/wp-fluid-images/

  2. ramseyp
    Member
    Plugin Author

    Posted 2 years ago #

    Hi D,

    If you want just the stripping of width & height from image uploads, you can disable the plugin and instead, add these lines to your theme's functions file:

    add_filter( 'post_thumbnail_html', 's25_remove_image_dimensions', 30 );
    add_filter( 'image_send_to_editor', 's25_remove_image_dimensions', 30 );
    function s25_remove_image_dimensions($html){
    	$html = preg_replace( '/(width|height)=\"\d*\"\s/', "", $html );
    	return $html;
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic