Change the featured image size in template

Home Forums Calendar Products Events Calendar PRO Change the featured image size in template

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #54333
    Alain
    Participant

    I\’m trying to set the variable size to the featured image in the single-event.php but it is not working and the image is not showing when the size is defined. Any clue?

    Example : http://concertsdelacite.qc.ca/spectacle/la-fanfare-pourpour/

    Thanks

    #54650
    Neill
    Member

    Hi Alain,

    Thanks for your question and I hope you’re liking the 3.0 so far!

    I just chatted to a few team members about this and here’s what we recommend to begin with.
    In the file single-event.php is a function called:
    tribe_event_featured_image()
    In this function you can pass the image a specific size:
    tribe_event_featured_image('my_image_size')
    Remember that you will have to override the template for this to work. If you haven’t already seen it, the new documentation page might help as look up for some of these functions: http://docs.tri.be/. Specifically the function you are looking for is here: http://docs.tri.be/Events-Calendar/function-tribe_event_featured_image.html

    Hope that helps and let me know if that was the method you were already using.

    Neill

    #55603
    Neill
    Member

    Hi Alain,

    How did the solution above work? Let me know if you still need any further assistance with this issue. If I don’t hear back before the end of the week I’ll go ahead and close the ticket, but feel free to reply before then or open a new ticket after that and we’ll be happy to help.

    #55619
    Alain
    Participant

    Thanks for the clue Neill. I also found that the two parameters set in the function, for exemple tribe_event_featured_image(‘null’, ‘thumbnail’), otherwise the image is not resize. You can close the ticket.

    #60480
    Rob
    Member

    Excellent!

    #980132
    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 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Change the featured image size in template’ is closed to new replies.