Skip to content

Instantly share code, notes, and snippets.

@rafaehlers
Created February 26, 2019 23:00
Show Gist options
  • Save rafaehlers/38c6f88bb713ec386b709e4090a68860 to your computer and use it in GitHub Desktop.
Save rafaehlers/38c6f88bb713ec386b709e4090a68860 to your computer and use it in GitHub Desktop.
Remove the width=250 from img tag (file upload fields on GravityView)
<?php //MAKE SURE TO REMOVE THIS LINE
add_filter( 'gravityview/fields/fileupload/image_atts', function ( $image_atts ) {
$image_atts['width'] = NULL;
return $image_atts;
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment