• Resolved eic2010

    (@eic2010)


    Hi
    I want to show the featured image as a thumbnail in list view however all my images are different sizes. If I set the thumbnail size then some images end up looking really distorted. Is there a way that it can just take a piece of the image, such as cropping it or zooming?
    Thanking you in advance!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Jennifer

    (@jentheo)

    Hello,

    You could do this via a customization, for which I would recommend taking a look at our themer’s guide. You can find the template for that view at wp-content/plugins/the-events-calendar/src/views/list/single-event.php.

    I hope that helps!

    Jennifer

    Thread Starter eic2010

    (@eic2010)

    Thanks for getting back to me. Is there some CSS code I could use to make this happen?

    Jaime

    (@jaimemarchwinski)

    Hi @eic2010,

    You could try to achieve this with CSS using something like this:
    .tribe-events-event-image img { height: 200px !important }

    You would place this inside of a custom tribe-events.css stylesheet. You can reference the Themer’s Guide for more information on how to do this properly.

    I hope this helps!

    Thread Starter eic2010

    (@eic2010)

    Hi @jaimemarchwinski

    Thanks for your reply.

    Yes that sets the height but the problem I have is that all my featured images are different sizes so I was wondering if it was possible to set the thumbnails to a standard size which automatically selects a portion of the image to bring in. At the moment it just resizes the image but for some that looks distorted and stretched.

    Thanks again for your help!

    Plugin Contributor Victor Zarranz

    (@vicskf)

    Hi @eic2010!

    I’m sorry for the delay in getting back to you.

    Please note that we are not able to give much support for custom development questions in these forums. The best way to get dedicated support for your questions will be with a premium license that provides you access to our help desk.

    That said, if you share a link to the page where you are having the issue, we could take a look and at least see if we can spot where the problem is.

    Thanks,
    Victor

    Plugin Contributor Victor Zarranz

    (@vicskf)

    Hey there! This thread has been inactive for a while so we’re going to go ahead and mark it Resolved. Please feel free to open a new thread if any other questions come up and we’d be happy to help. 🙂

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Crop Thumbnails’ is closed to new replies.