Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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.

    #1049784

    Hey 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,
    Ismael

    #1054866

    Hi 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).

    #1056430

    Hi,

    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,
    Ismael

    #1057631

    Hi Ismael,

    Not sure what happened but it’s working now without the code. Thank you, we can close this thread.

    #1057635

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Events Featured Image’ is closed to new replies.