how to define the image size and height for function featured image

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.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1249729
    Colin Purchase
    Participant

    hi 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

    #1250237
    Cliff
    Member

    Hi, 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.

    #1250287
    Colin Purchase
    Participant

    no 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

    #1250663
    Cliff
    Member

    Please provide a link to your site so I can view the issue you’re experiencing.

    #1250902
    Colin Purchase
    Participant

    http://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

    #1251212
    Cliff
    Member

    Whatever 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.

    #1262017
    Support Droid
    Keymaster

    Hey 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

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘how to define the image size and height for function featured image’ is closed to new replies.