-
AuthorPosts
-
January 25, 2016 at 11:54 pm #571688
I have included questions and answers from the calendar support team:
Q: 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/
A: 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):
1
<?php echo tribe_event_featured_image( $event_id, ‘full’, false ); ?>Q: 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)?
A: 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.
*http://wordpress.stackexchange.com/questions/134894/correctly-delete-posts-with-meta-and-attachments/134917#134917
Q: Will adding the code mentioned here* remove the photos automatically when the events expire?
Your help is much appreciated.
January 27, 2016 at 1:07 pm #572816Hey Allyson!
Wordpress is cropping images by default when uploading them. You can control this behavior with a plugin like:
https://de.wordpress.org/plugins/simple-image-sizes/Best regards,
AndyJanuary 27, 2016 at 8:41 pm #573236Andy,
We have so many plugins running now.
If I use this plugin, will it reduce the number of photo sizes saved?
Or is it best to do something like this… https://kriesi.at/support/topic/multiple-media-sizes-being-saved-layerslider-site-speed-issues/#post-542996
January 27, 2016 at 9:08 pm #573250Hey!
NO, the number of the images used, is not been replaced, that is based on enfold image sizes, that are been generated. So, based on the elements you are using, you do need different amount of sizes also.
Cheers!
BasilisJanuary 29, 2016 at 10:10 pm #574813Basilis,
I’m still not sure I understand which is the best way to resolve my issue. Can you confirm.
January 30, 2016 at 6:00 pm #575037Hi!
I think you could do both: Remove the image sizes as Josue mentioned it in your link and then add the images you want using the plugin I mentioned.
Best regards,
Andy -
AuthorPosts
- You must be logged in to reply to this topic.