Home › Forums › Calendar Products › Events Calendar PRO › how to define the image size and height for function featured image
- This topic has 7 replies, 4 voices, and was last updated 9 years ago by
Colin Purchase.
-
AuthorPosts
-
March 5, 2017 at 11:19 pm #1249729
Colin Purchase
Participanthi can you please let me know how to define the image height and width for function <?php echo tribe_event_featured_image( null, ‘medium’ ) ?> i send medium call but the problem is that image is way to small in size i want to increase the image default height and width on medium call thanks
March 6, 2017 at 7:39 pm #1250237Cliff
MemberHi, Colin.
tribe_event_featured_image() without any arguments (or at least without specifying ‘medium’) defaults to using the ‘full’ size. You might want to try that.
Please let me know if you have any follow-up questions on this topic.
March 6, 2017 at 11:20 pm #1250287Colin Purchase
Participantno the full image is way to big for homepage and increase the load time for page i want to change to value for tribe_event_featured_image( null, ‘medium’ ) medium so that by default i can call image of width 400px and height 400 px i hope you understand my question thanks
March 7, 2017 at 10:19 am #1250663Cliff
MemberPlease provide a link to your site so I can view the issue you’re experiencing.
March 7, 2017 at 11:07 pm #1250902Colin Purchase
Participanthttp://www.expatliving.sg/ on home page there is section KEY EVENTS i have over ride is template and turned that into slider if i call images with size medium those images get blur while if i call the image with medium_large(768 x 511 pixels) it ways to big for home page . i want to set default height and width for medium size image so that they get cropped accordingly as i wish and does not get blurred to thanks
March 8, 2017 at 10:06 am #1251212Cliff
MemberWhatever you have in place now looks good: https://cl.ly/2l1S3i2A420R
If you don’t have a size between small and the next largest one, you could register a new size.
I personally like Simple Image Sizes plugin (third-party, not guaranteed or supported by us) to register a new size and also regenerate all image sizes.
You could also choose to use a different function instead of the one from our plugin. You could use get_the_post_thumbnail() which would generate srcset, which is probably best.
And/Or, you might be interested in a plugin like Force jpeg quality (again, third-party) if the issue is that your uploaded images are blurry but the original image on your computer wasn’t.
I hope this information helps. Please let me know how this goes for you.
March 30, 2017 at 9:35 am #1262017Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘how to define the image size and height for function featured image’ is closed to new replies.
