Support

Home Forums Event Espresso Premium Featured Image not filling the space needed

Featured Image not filling the space needed

Posted: July 11, 2016 at 11:48 am

Viewing 3 reply threads


msaEEticket8

July 11, 2016 at 11:48 am

Hello!

I was wondering how I get the featured image I have on my events to go all the way across the top. It stops at like 80% width. I have searched for a while in the css and such, but not seeing. When I inspect the page through the browser, I see that it is using a thumbnail and not the actual image. Any tips or css I can paste into my theme to help out with this?

https://www.mosheriffs.com/events/sheriffs-summer-conference/


Josh

  • Support Staff

July 11, 2016 at 12:44 pm

You could try uploading a wider image (around 1000px wide instead of 790px). If that doesn’t help, you can add the following CSS to your theme:

.thumbnail{
    zoom: 2;  
    display: block;
    margin: auto;
    height: auto;
    max-height: 100%;
    width: auto;
    max-width: 100%;
}


msaEEticket8

July 12, 2016 at 10:27 am

Thanks for the css. That works, but the original images are 2007 × 466. I don’t know why it isn’t using them.


Josh

  • Support Staff

July 12, 2016 at 10:33 am

You can check the theme’s template code where it calls the_post_thumbnail(). It may be setting the first parameter to a smaller version of the image. More info here:

https://developer.wordpress.org/reference/functions/the_post_thumbnail/

Viewing 3 reply threads

The support post ‘Featured Image not filling the space needed’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso