• Resolved Matt Scheidler

    (@matt6303)


    I just updated your plugin to the latest version 7.6.0 and it has caused an issue with my calendar.

    I see in the changelog that “Added conditional to omit empty <ul> elements on dates with no events.”

    I have been styling the UL’s within each calendar day – to reflect whether the given day is RESERVED or AVAILABLE. Without the <ul> present, all my AVAILABLE days are now just a empty, white square. The <ul> I had been styling is no longer there.

    Is there a way to re-enable this, or make it available as an option, to have an empty date still produce the empty <ul> tag?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author room34

    (@room34)

    I’m sorry to hear this change has messed up your display! I think it is best to keep the empty <ul>s out though, to reduce the file size and improve accessibility.

    There should be another way to handle this with your setup though. The <td> tag for each day has CSS classes added to it depending on whether or not there are any events on that day: .empty if there are no events and .has_events if there are. You may be able to change your CSS to focus on these classes assigned to the <td> tag, rather than the <ul> tag. If you need additional help with this I can give you some specific CSS code to try, but I’d need to see your page.

    One other option is that there’s a feature specifically for adding arbitrary filler content for “empty” days in the Pro version of the plugin, but that doesn’t exist in the free version.

    Thread Starter Matt Scheidler

    (@matt6303)

    Thank you for the very prompt reply.

    I have restored my original look by doing something that might be similar to what your Pro version does.

    Thanks for the quality plugin.

    Plugin Author room34

    (@room34)

    Thanks for following up; I’m glad you were able to resolve the issue.

    I’m trying to be very judicious about making changes to the plugin’s output, but in some cases like this there are unavoidable tradeoffs!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Added conditional to omit empty elements on dates with no events.’ is closed to new replies.