Adjust Photo Height on Event View

Home Forums Calendar Products Events Calendar PRO Adjust Photo Height on Event View

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1057504
    David
    Participant

    I want the photos on the event view to show the entire image. It looks great when it’s a horizontal photo, but most of the time, people post vertical posters, and the top and bottom are cut off like here…

    http://explorenayarit.com/event/canuck-country-bungalows-marlenne/2016-01-24/

    Although in this case, probably due to the size of the image, it shows the whole thing…

    http://explorenayarit.com/event/petr-myska-author-luncheon/

    What do I need to do?

    And since we use the community plugin, can I assume that event photos are automatically reduced before saving so our system doesn’t have to host enormous image files?

    That makes me also wonder what happens to these images? Where are they stored? And are they removed when the event is older than 6 months (as an example)?

    Thanks!

    #1058092
    Hunter
    Moderator

    Welcome back, Allyson!

    To display the entire image rather than a cropped image, you will need to create a template override; information on how to create custom templates can be found here. Our plugin uses the WordPress media_handle_upload function. Image sizes are usually defined in your theme’s functions.php file. Your best bet would be to contact the theme author for that information.

    The line of code you’ll need to alter is around line 58 in single-event.php (located in plugins/the-events-calendar/src/views):

    <?php echo tribe_event_featured_image( $event_id, 'full', false ); ?>

    And since we use the community plugin, can I assume that event photos are automatically reduced before saving so our system doesn’t have to host enormous image files?

    Photos uploaded via the Community Events submission form are not compressed any further than the default WordPress compression.

    That makes me also wonder what happens to these images? Where are they stored? And are they removed when the event is older than 6 months (as an example)?

    Images are stored in your wp-content/uploads folder. Additionally, they are not removed when recurring events clean up takes place. However, our plugin does use wp_delete_post, so technically you could use something like this to ensure attachments are deleted along with recurring events.

    Thanks for choosing PRO and have a great week 🙂

    #1076882
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Adjust Photo Height on Event View’ is closed to new replies.