related-events-thumbnail img

Home Forums Calendar Products Events Calendar PRO related-events-thumbnail img

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1016717
    Lisa League
    Participant

    How can I replace the default related events thumbnail for events that have no featured image?

    I just want this for 3 related events at the bottom of single events.

    http://www.qpractice.com/ncidq-study-schedule/

    #1016846
    Geoff
    Member

    Hey Lisa–nice to see you again and hope all is well. šŸ™‚

    Oh yeah, that’s a great question and is totally doable. It will take a template override, so here’s how that works:

    • Make a copy of theĀ related-events.php template. It’s located inĀ /plugins/events-calendar-pro/src/views/pro/related-events.php
    • Make a new folder in your theme directory calledĀ tribe-events
    • Make a new folder in that one calledĀ pro
    • Drop the copiedĀ related-events.php file in that last folder

    Now that the template is in your theme folder, it can be modified to suit your needs. In this case, change the URL of the default image (on Line 31 for me) to point to the image of your choice instead. That should give you a brand new default image. šŸ™‚

    Will that work for you? Please let me know.

    Cheers!
    Geoff

    #1016940
    Lisa League
    Participant

    This reply is private.

    #1016964
    Geoff
    Member

    Awesome! Thanks for following up and confirming everything. So glad this helped out. šŸ™‚

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘related-events-thumbnail img’ is closed to new replies.