How do I create a past events disclaimer in the Localist calendar?

NOTE: In order to add this disclaimer, you must be a registered administrator of the calendar.gsu.edu WordPress site. To request access, please contact tickets@gsu.uservoice.com

 

Adding a “Past Event” Disclaimer

This can be done by using your platform’s Theme Editor. If you don’t have a custom HTML theme active:

  1. Navigate via Settings > Appearance
  2. Select the +Add Theme button
  3. Enter a name and keep the Copy From set to Default.
  4. Back on the Appearance landing page, select the new theme’s name.
  5. On edit theme page you will see a list of files on the right-hand side. Select the file _event_item under Shared Among Multiple Views.
  6. In between lines 46/47, add {% if event_item.is_past %}<font color= “red”>This is a past event.</font>{% endif %}
  7. Select the blue Save Changes button then hit Preview in the blue bar. Preview will take you to your calendar homepage so you can see the change.
  8. Next, select the file Page Shell under Events.
  9. On line 52, add {% if event.is_past %}<font color= “red”>This is a past event.</font>{% endif %}. If you are using the Default Legacy theme, then add this code on line 88.
  10. Select the blue Save Changes button.
  11. Once you’ve confirmed that the change is correct, select Activate in the blue bar on the edit theme page. (Back on the appearance landing page you’ll see the new theme listed as active as well).

If you do have a custom HTML theme active:

  1. Navigate via Settings > Appearance
  2. Select the name of the theme you wish to edit.
  3. On edit theme page you will see a list of files on the right-hand side. Select the file _event_item under Shared Among Multiple Views.
  4. In between lines 46/47, add {% if event_item.is_past %}<font color= “red”>This is a past event.</font>{% endif %}
  5. Select the blue Save Changes button.
  6. Next, select the file Page Shell under Events.
  7. On line 52, add {% if event.is_past %}<font color= “red”>This is a past event.</font>{% endif %}.If you are using the Default Legacy theme, then add this code on line 88.
  8. Select the blue Save Changes button.

Note: This will not change the overall theming/SILK/CSS that is already in place. Activating this theme will only apply the new change to the file you modified, so in this case, the only thing changing will be the text added to past event listings and/or landing pages.



 Other articles about working in Localist:

Feedback and Knowledge Base