Hi there. I was wondering how to use the Grid View Template in a way that each thumbnail has a specific width and height. Right now it’s 150x150px. I’d like to run it with 650x300px. How do I do that?
I know the 150×150 come from the standard WP settings for thumbnails, but when I alter this values to 650×300, Event Espresso still shows a 150×150 image (although it is squeezed).
—
Also I’d like to know how to alter the display of event titel etc. Right now it’s only seen with a mouse-over action. I’d like to see this stuff always on top of the picture and I want to alter it via CSS. How is that possible?
These changes will require some modifications to the template and some additional CSS.
For the PHP/template changes you’ll:
1) Copy the add-on’s
espresso-grid-template.template.php file to your active WordPress theme
2) Change line 26 from: $feature_image_url = $post->EE_Event->feature_image_url();
to: $feature_image_url = $post->EE_Event->feature_image_url(array(650,300));
3) Optionally move the image html so it’s after the title html
Then for the CSS changes, you’ll add the following to the Additional CSS page (located in Appearance > Customize > Additional CSS)
The support post ‘Two questions about Grid View Template -> Thumbnail size and titel display’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.