• Leaving the full feature image in the photo view can make your site very slow as it has to download the full image for ever event. Replacing that image on the Photo list view with a smaller image will help improve your page load speed.

    But this surprisingly enough is not something Events Calendar Pro can do out of the box and you need to make a custom override.

    To do this you need to copy the original file that creates the Photo list eevnt view.

    You will find it here: plugins > events-calendar-pro > src > view > v2 > photo > event.php

    Create a copy of this file and put it in your theme folder here:
    YOUR-THEME > tribe > events > v2 > photo

    Open the file and locate this bit of code
    <?php $this->template( 'photo/event/featured-image', [ 'event' => $event ] ); ?>

    and replace with this
    <?php echo tribe_event_featured_image( $event->ID, 'thumbnail' ); ?>

    You can replace the word ‘thumbnail’ with ‘meduim’ or ‘large’ to use the default WordPress media settings you have set here: settings > media

    Hope this helps others

Viewing 1 replies (of 1 total)
  • Plugin Support Abz

    (@abzlevelup)

    Hi @wicko, this is awesome! Appreciate you taking the time and sharing this information and the workaround. I would definitely share this with our team.

    Please do not hesitate to bump a new ticket on our way for different topics.

    Have a great day, David.

    Best,
    Abz

Viewing 1 replies (of 1 total)
  • The topic ‘replacing full image with thumbnail in Photo list view’ is closed to new replies.