thummbnails in events list widget

Home Forums Calendar Products Events Calendar PRO thummbnails in events list widget

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #937168
    meredy
    Participant

    Is this tutorial – https://theeventscalendar.com/adding-post-thumbnails-to-the-events-list-widget/ – current?
    I want to add thumbnails but can’t find this tutorial???

    #937655
    Brian
    Member

    Hi,

    That tutorial was from the old site and is no longer current.

    If you are looking to edit the List Widget you want to start with this file:

    events-calendar-pro\views\pro\widgets\list-widget.php

    Move that file or this file:

    events-calendar-pro\views\pro\widgets\modules\single-event.php

    To your theme following the themer’s guide:

    https://theeventscalendar.com/knowledgebase/themers-guide/

    There you can add the thumbnail by adding this code:

    <?php echo tribe_event_featured_image(null, ‘thumbnail’) ?>

    Let me know if you have any follow up questions.

    Thanks

    #937749
    meredy
    Participant

    OK that works but I would also like to add the category name, short description, and link to purchase a ticket to each listing. Can that be accomplished the same way? IE
    <?php echo tribe_event_category(null, ‘category’) ?>
    but what code to put in to add first sentence of text?
    or to add button with link to tickets?

    #937771
    Brian
    Member

    The modifications can be done in the same way as adding a thumbnail.

    We are not able to help on every step of the way, but here is some more information.

    You might want to try this function for event categories:

    tribe_get_event_categories();

    The Events are custom post types so you can use the Content or Excerpt functions in WordPress to get the description and get it to the length you would like.

    Not sure where to link the tickets as I do not know the plugin being used to sell tickets.

    And the placement of the coding is up to you and how you would like it.

    #947392
    Brian
    Member

    Since there is has not been any activity on this thread for over 2 weeks so I am now closing it. Feel free to start a new thread if you have further issues. Thanks! 🙂

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘thummbnails in events list widget’ is closed to new replies.