display thumbnails on the Events List widget

Home Forums Calendar Products Events Calendar PRO display thumbnails on the Events List widget

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1110497
    Pau
    Participant

    Hi, dear TEC,

    Im sorry if I ask something obvious, but how come in one website this plugin shows the list with thumbnails and on the other not?

    Both sites are build with Divi theme, I’m building both in parallel and have same settings (as far as I’m concerned)

    Do you have any idea what may be causing this?

    (I want to feature the list with thumbnails, but it would be good for me and others to know how to add / remove them) see both examples here:
    http://79.170.44.126/ref-spainculturescience.co.uk/ (shows thumbnails)
    http://217.199.187.196/chatspalace.com/ (doesn’t)

    #1110579
    Nico
    Member

    Hi Pau,

    Thanks for reaching out to us! Let’s see why this happens.

    We have an article in place that shows how to add this images: Add thumbnails to upcoming events List Widget. Maybe Divi is doing something similar by default? Or maybe it’s an option of the plugin you need to activate? Also, have you checked that the events in the second website actually have featured image set?

    Please let me know about it, also it might be a good idea to reach out to Divi support and ask what the default behaviour should be and how to activate the thumbnails if needed,
    Best,
    Nico

    #1110658
    Pau
    Participant

    Sorry

    The code is for the TEC non PRo and Im not sure what you mean for “the events in the second website actually have featured image set”?

    I apologise in advance, but can you point it out?

    πŸ™‚

    #1110921
    Nico
    Member

    Hey Pau,

    Thanks for following up!

    The code for PRO is here: https://gist.github.com/ggwicz/251bdcebb7f9181737ec – it’s a link at the bottom of the article maybe no the clearest way of including it.

    By the events in the second website actually have featured image set, I mean if the events listed in the list widget of the second site you listed (http://217.199.187.196/chatspalace.com/) actually have a featured image assigned.

    Anyway, I’ve re-checked your sites and this seem to be working. Can you share the solution here?

    Best,
    Nico

    #1110935
    Pau
    Participant

    In my case I added this snippet of code on the functions.php:

    function custom_widget_featured_image() {
    global $post;

    echo tribe_event_featured_image( $post->ID, ‘thumbnail’ );
    }
    add_action( ‘tribe_events_list_widget_before_the_event_title’, ‘custom_widget_featured_image’ );

    But still not clear how I end up there, and why thumbnails display in a different manner at both sites, so, work in progress…

    πŸ™‚

    #1110967
    Nico
    Member

    Thanks for adding your solution Pau!

    As suggested before it might be a good idea to reach out to theme authors and ask how this should work by default with Divi and how to enabled the thumbnails if needed. Anyway it’s great to hear you got it working πŸ™‚

    I’ll go ahead and close out this thread, but if you need help with anything else please don’t hesitate to create a new one and we will be happy to assist you.

    Best,
    Nico

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘display thumbnails on the Events List widget’ is closed to new replies.