Created
May 26, 2015 18:59
-
-
Save luistinygod/e07519bc0fe760d64404 to your computer and use it in GitHub Desktop.
GravityView: Remove hardcoded image width on multiple entries view
This file contains 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 | |
/** | |
* Add this to functions.php file | |
*/ | |
add_filter( 'gravityview_image_html', 'my_gv_remove_image_width', 10, 1 ); | |
/** | |
* Remove the image fixed hardcoded width on the multiple entries | |
*/ | |
function my_gv_remove_image_width( $html ) { | |
return str_replace( 'width="250"', '', $html ); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment