Created
February 26, 2019 23:00
-
-
Save rafaehlers/38c6f88bb713ec386b709e4090a68860 to your computer and use it in GitHub Desktop.
Remove the width=250 from img tag (file upload fields on GravityView)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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