Hide featured image on Upcoming Event Widget

Home Forums Calendar Products Events Calendar PRO Hide featured image on Upcoming Event Widget

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1623682
    domconrad
    Participant

    I’m hoping to use ‘Events List: Upcoming Events’ widget in footer of Divi Theme site.

    Some events will have featured image and this takes up too much real estate, especially if client posts a portrait image!

    So I’m ok hiding the featured image (.tribe-event-image {display:none;}) on footer with css, but that leaves the events with and without assigned featured images looking different. See Grabs attached.

    Is there a way to use the widget so the styling is consistent, irrespective of whether a featured image is associated?

    #1624884
    Cliff
    Member

    Hi. Thanks for your detailed message.

    Those 2 events that have images are also Featured Events. If you make the Oct 18 event “Featured”, it would look like the others. Or, if you make those 2 not Featured, all 3 will look the same.

    The “tribe-event-featured” class comes from https://github.com/moderntribe/the-events-calendar/blob/4.6.23/src/functions/template-tags/general.php#L668-L671

    You could use a PHP filter or jQuery to add/remove the HTML class to/from all events within the List Widget.

    If you need some coding help, you may want to ask your own developer or reference our Customizations Documentation, which includes a link to Hire A Freelancer.

    Please let me know if you have any follow-up questions on this topic.

    #1625923
    domconrad
    Participant

    Aaaaahhhh! Featured….. Many thanks.

    #1626021
    Cliff
    Member

    Glad to help! 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Hide featured image on Upcoming Event Widget’ is closed to new replies.