Skip to content

Instantly share code, notes, and snippets.

@GeoffEW
Created January 22, 2019 16:10

Revisions

  1. GeoffEW created this gist Jan 22, 2019.
    23 changes: 23 additions & 0 deletions fix_for_blurry_phot_view.php
    Original 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' );