Skip to content

Instantly share code, notes, and snippets.

@luistinygod
Created May 26, 2015 18:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luistinygod/e07519bc0fe760d64404 to your computer and use it in GitHub Desktop.
Save luistinygod/e07519bc0fe760d64404 to your computer and use it in GitHub Desktop.
GravityView: Remove hardcoded image width on multiple entries view
<?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