Created
January 22, 2019 16:10
Revisions
-
GeoffEW created this gist
Jan 22, 2019 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ <?php // 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' );