The Events Calendar
Single Events Page - add class for past events? (2 posts)

  1. oliversos
    Posted 2 years ago #

    Is there a way to add a class to a container or the body tag so that I can target events that have expired?

    For example, I'm planning on adding an image to all single events pages but want to hide it on events that have already occurred. (And keep in mind that I don't want to delete my past events.)

    I would like to implement css statements such as:
    .past-event img.xyz { display: none; }

    How can I implement 'past-event' class or id?

    Thanks in advance!


  2. Rob La Gatta
    Modern Tribe Support
    Plugin Author

    Posted 2 years ago #

    Hey oliversos. You still stuck here, or did you get this figured out? Just hitting the forum today for the first time in a while but if you need us to take a look here, I can get a dev on it to see if they can point you in the right direction. Let me know and thanks for your patience so far.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • The Events Calendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.