• Resolved supernaut510

    (@supernaut510)


    I have a new site in development for a business that has events EVERY DAY. For future events, before an event time/place has been established, they would like to display some default information (instead of a blank calendar day or empty list), to reassure users that there WILL be an event, but the details aren’t established yet. So this is different from the “No Event Found” message — it would have to appear on the calendar for dates that don’t have a “real” event yet. Any idea how to accomplish this?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Barry

    (@barryhughes-1)

    Perhaps create some all day events to act as placeholders, with suitable “Coming Soon!” messaging?

    Thread Starter supernaut510

    (@supernaut510)

    Thanks for the suggestion, but that would require creating dozens of “throw away” events on a regular basis — I think it would make management messy and tedious for the client. I was hoping there might be a way to create a default event that appears UNLESS another event is scheduled on that day. Maybe that would have to be a custom add-on?

    @supernaut510 — I’m just another user, but here’s my suggestion —

    If I understand you correctly, you want a generic “Event of the Day” or “To Be Announced” message to show up on every page where there isn’t something else specifically scheduled, to show up on the calendar month view.

    I’d suggest coding an “if” statement in to the /month/single-day.php template — I think that’s the template that governs each day, and you could code in statement that specifies that if there are no posts (events) for that day, then to display the generic text.

    I’m not a coder so I can’t really tell you how to write the code, but I think it would be a pretty basic task. I have found it pretty easy to modify other templates so I would suggest that you start with that. Since your site is under development you can play around to see if it works and then tweak things to your liking.

    • This reply was modified 7 years, 2 months ago by Abigailm.
    Thread Starter supernaut510

    (@supernaut510)

    Cool – thanks for the heads-up about where to include the IF statement. Sounds pretty straight forward. Hopefully I can direct it to the ID of a single default event. I appreciate the advice.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘“Default Event?”’ is closed to new replies.