Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Fix for blurry images in the Photo view
// Fix blurry photo image #jrfm
// To use in functions.php without the PHP opening tag at the top :-)
function tribe_adjust_photo_view_image_size($unfiltered) {
if ( tribe_is_photo() ) {
$filtered = get_the_post_thumbnail( get_the_ID(), 'full' );
return $filtered;
} else {
return $unfiltered;
add_filter( 'tribe_event_featured_image', 'tribe_adjust_photo_view_image_size' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment