On snow days, and other days when we must cancel lectures, LLIR commits to post a notice the Website by 7 am. This page describes how the webmaster can turn on a conditional element to display the notice below on the top of the Welcome to LLIR and Member Home pages.
Lectured cancelled: Glendon Campus is closed on current_date due to inclement weather.
Note: Both public and member-only homepages display the notice so that members see it without logging in. The actual date is resolved by a WordPress plugin called Shortcode For Current Date. The conditional element that you modify by following the instructions below displays the notice above page titles.
Instructions
Follow these steps to turn the conditional element on. It turns off automatically at the expiry date and time you set.
- From the WordPress dashboard, click Appearance and then Element.
A panel that lists all defined elements appears. - Select the Lectures Cancelled element and click Edit.
- You do not need to touch the contents of the element (the text above), but can modify the wording if you are careful not to alter “current_date” and the [ ] that surrounds those characters.
- Make sure the word Element is underlined at the top of the panel on the right of the editor. Open the Element Settings panel by clicking the button above the words Element Settings in the image on the right.
- Scroll down the Element Settings panel to Expires Setting and click the down-arrowhead to expand that option.
- Leave the Enable Expires switch in the ON position ( O).
- Set the date to the current date and enter a time when the notice is no longer needed, say 5:00 pm.
By setting an expiry time that is in the future, you turn the element on when you save it.
You can also set an expiry time that is in the past, to the element off when you save it. - Test by opening the LLIR website when not logged in to verify that the notice appears on the Welcome to LLIR page. Log in and check that it also appears on the Member Home page. You can optionally verify that it appears on no other pages.
- Test again at or after the expiry time that you set to make sure the notice no longer appears.

