Default image display size

Home Forums Calendar Products Community Events Default image display size

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #45710
    Ken
    Participant

    In WordPress Settings > Media, I have Large size’s maximum width set to 600px. When someone submitted an event with an image 800px wide, it got displayed at 800px wide. Is there a way for Community Events to default to using my site’s Large size?

    I saw a similar question was previously asked about limiting image uploads, though I wasn’t sure if that was referring to filesize or image size. However, I don’t want to limit the upload by any criteria; I just want to define which version is displayed.

    #45722
    Barry
    Member

    Hi Ken,

    If you are happy editing templates/working with template overrides then what you would need to do is edit your custom events/single.php template.

    In there you will see the following line (around line 135):

    the_post_thumbnail();

    You would need to add an argument specifying the size to be used, otherwise it assumes that you want the original image size:

    the_post_thumbnail('large');

    Does that help at all here?

    #45740
    Ken
    Participant

    Barry,

    Wow — talk about an easy fix! It worked great. Thanks!

    -Ken

    #45876
    Barry
    Member

    Great 🙂

    #978941
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Default image display size’ is closed to new replies.