• Resolved kizz

    (@kizz)


    Hi, I’m using the event-list shortcode an I would like to display a notification when there are no upcoming events. Is there any way to do that? I’ve seen this question here before, but never a solution. Seems like basic functionality to me. I tried to change ‘event-archive.php’ but that didn’t have any effect. Thnx.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter kizz

    (@kizz)

    Managed to address this issue using javascript.

      var myDiv = document.querySelector(".mage_grid_box");
      if(myDiv.innerHTML.trim() === "") {
        myDiv.innerHTML = "Sorry, no upcoming events.";
      }

    Still, an option in the plugin itself would be preferable.

    Thread Starter kizz

    (@kizz)

    I noticed that this issue has been marked as resolved but I’d appreciate to learn if there are any more ‘robust’ solutions for this matter. Like maybe an adjustment in a template or something. Best option would be when this could be set in the backend of the plugin, where you would expect something like that. Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Notification in case of empty event list.’ is closed to new replies.