WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. oliversos
    Member
    Posted 1 year 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!

    http://wordpress.org/extend/plugins/the-events-calendar/

  2. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 1 year 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

About this Topic

Tags

No tags yet.