Replacing calendar icon with thumbnail

Home Forums Calendar Products Community Events Replacing calendar icon with thumbnail

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1086390
    Britt
    Participant

    I have followed the instructions to upload the list-widget.php file to theme/tribe-events/pro/widgets and to add single-event.php to pro/widget/modules

    I followed the link to https://gist.github.com/ggwicz/251bdcebb7f9181737ec#file-pro-widgets-modules-single-event-php,

    I can’t figure out where in the code would allow me to replace the calendar icon with a thumbnail of the featured image. Can someone help me out with that?

    • This topic was modified 10 years, 1 month ago by Britt.
    #1087096
    Brook
    Participant

    Howdy Britt,

    I would love to help you with this. Of course I can not write and test all the code for you, but I can definitely point you in the right direction.

    The datebox/calendar icon is the <div class=”list-date” /> . If you strip that and its children out the date box will go away. To replace it with a featured image just call the featured image function: tribe_event_featured_image() . You will probably want to wrap the featured image in a div of your own making, along with some CSS to get it the right width and add some margin.

    Does that all make sense? Will that work for you? Please let me know.

    Cheers!

    – Brook

    #1094071
    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 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Replacing calendar icon with thumbnail’ is closed to new replies.