-
AuthorPosts
-
January 3, 2019 at 4:28 am #1049438
Hi,
When I look at the single event page, I noticed that my featured image is cropped so that the top and bottom get cut off. I reached out to The Events plugin team and they stated that it was a theme related issue because the theme modifies their files. Can you let me know what CSS coding I can put in to not crop the featured image? Sample page in private content section.
January 4, 2019 at 4:52 am #1049784Hey sjahan,
Thank you for using Enfold.
Add this code in the functions.php file to adjust the default size of image or the “entry_with_sidebar” thumbnail.
add_filter( 'avf_modify_thumb_size', 'avf_modify_thumb_size_mod', 10, 1 ); function avf_modify_thumb_size_mod( $size ) { $size['entry_with_sidebar'] = array('width'=>845, 'height'=>845); return $size; }
The default thumbnail size is 845x321px. You have to regenerate the thumbnails after the adjustment.
// https://wordpress.org/plugins/regenerate-thumbnails/
Best regards,
IsmaelJanuary 17, 2019 at 5:40 am #1054866Hi Ismael,
I placed the code and now my image is just cropped into a square. I changed the height to make it more rectangular in the hopes of not cropping the photo, but it’s still cropping it. How can I prevent the photo from being cropped?
I deactivated the regenerate thumbnails plugin because no matter what I did the photo just remained in a square (regardless of the dimensions I put into your code).
January 21, 2019 at 6:14 am #1056430Hi,
Did you regenerate the thumbnails after adding the code? I recheck the events template and it seems to be using the “medium” thumbnail, which is specified in the Settings > Media library. Please try to adjust that thumbnail and then regenerate thumbnails again. Or post the FTP details in the private field so that we can check the events template.
Best regards,
IsmaelJanuary 23, 2019 at 9:04 am #1057631Hi Ismael,
Not sure what happened but it’s working now without the code. Thank you, we can close this thread.
January 23, 2019 at 9:15 am #1057635Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Events Featured Image’ is closed to new replies.