Posted: December 8, 2019 at 2:28 pm
I am using Avada with the Event Espresso plugin and the event images are blurry in the Event Espresso grid view (https://newsite.csjthewell.org/spiritual-offerings/). If you look at the same image when it’s not in the grid format the quality is fine (https://newsite.csjthewell.org/suggestions/). So I know it’s not the image. When I first installed Event Espresso and loaded the event images they were very clear in the grid view. I’ve added CSS to the site. I removed all CSS pertaining to the grid view, but the images remain blurry. Do you have an idea of how I can fix this issue? |
|
Hi there, The gird template defaults to use the ‘thumbnail’ image size and your site that’s set to be 150px by 150px. There is then some CSS within the add-on to make the images 200px by 200px, so as your images are smaller than that they appear blurred. To fix this you can either create a custom template to use in the grid view template and alter the code used to set a larger size, or add some CSS to the size like this:
You can add that to Appearance -> Customize -> Additional CSS. If you prefer to create a custom template let me know and I’ll post some additional details on how. |
|
Thank you for getting back to me. I used the CSS code you recommended and it made the images smaller but not necessarily clearer. I also changed the elastic slider thumbnail image size for the theme to 200px wide hoping that would help, but it didn’t. The images I uploaded are 200px x 200px so if the add-on uses 200×200 you would think they would be clear. When I first uploaded images months ago they were clear. I have removed all CSS to test if anything was conflicting, and the issue remained. I am using a child theme and have made adjustments to the grid view and functions php files but none reference image sizes. I would really like the images to look as clear as they do on this page: https://newsite.csjthewell.org/suggestions/. Do you have any other solution? |
|
Yeah, I see what you mean, the problem is the ‘original’ thumbnail image is blurred, see this example: Thumbnail: https://newsite.csjthewell.org/wp-content/uploads/2019/12/Imagine-This-150×150.jpg Original: https://newsite.csjthewell.org/wp-content/uploads/2019/12/Imagine-This.jpg This actually has nothing to do with the grid add-on other than the fact that the add-on is loading the thumbnail version of the image (which is generated by WP when you upload the image, or ‘regenerate thumbnails’)
It won’t, not unless your theme also regenerates the thumbnails when doing so.
Well, no, not if your site uses 150px by 150px for ‘thumbnail’ images it wont. The add-on will load the 150px by 150px image created by WordPress when you upload the image and then that image will be forced up to 200px by 200px.
So you already have a copy of If so you can alter the size by altering this line:
Which should be around line 27. Change that to:
That should load the ‘full’ image from your site, which according to the above should be the 200px by 200px file. Does it look better then? |
|
Updating the grid template php worked! Thank you so much! One last question… After I loaded all the events on the site, it now loads really slowly. Is there a way to fix that besides switching servers? |
|
It depends. What exactly is loading slowly? The grid page above? |
|
This reply has been marked as private. | |
This reply has been marked as private. | |
This reply has been marked as private. | |
As far as I can tell, your home page loads a single event, loading a single event shouldn’t cause the page to slow down at all. What type of hosting are you using?
I just checked this and it happened to me, taking over 1.2 minutes to loads styles.css and 2.2min loading another CSS file. If this was simply an issue from loading EE’s events you’d see long load times for the page itself, not assets within the page (CSS/JS files). There’s something else happening, nothing I’m seeing points to issues with loading EE events.
When loading just Sounds like your server simply can’t handle the requests.
Ok, so that is using the even gird page and that page is ~5MB to download. The I’m on a 350MB connection and it takes my browser over 6 seconds to load the page. In short, your loading a lot of resources on that page so yes, they are going to slow the page load but that doesn’t mean it due to the EE events themselves.
For images etc, you could, but its something you set up on the server. All your doing there is preventing the browser from redownloading the images on the next page view, it will need to do the exact same thing when you first open the page. https://kinsta.com/blog/leverage-browser-caching/
I think you’re noticing it more simply because you now loading more events rather than the events themselves being the issue.
When you say ‘the dashboard’ which specific page? Everywhere?
That shouldn’t make any difference at all. So far, it looks like you need a better server and to either add some caching for pages like the grid output so that all of those events don’t need to be loaded on each and every request or load few events on single pages. |
|
Tony, thank you for all your insight. I really appreciate it. Since the site has 50 events, I think the best solution would be to show only so many, say 16, and then have pagination to bring up the next 16, etc. That way all of them don’t have to load at once. When I look at the grid template short codes it doesn’t look like I can can do that, however. I can set a limit of events, say 16, but I need users to be able to click next to see the rest. Can that be done? |
|
Not with the current version, no. You would need to load the events on separate pages and link them as it stands. |
|
The support post ‘Images Blurry in Grid View, Not Elsewhere’ 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.