Could you please add class "month-past" to each past month's div
Would you consider adding class “month-past” to each passed month’s div? Of course the class name would be totally up to you.
Currently the code goes like this:
<div class="wp-availability-month month-1 month-jan">...</div>
I would like to be able to hide past months, while still displaying the current month and future months. Right now there’s no other choice but hide past months manually by setting display:none to .month-1, .month-2 etc, and one has to edit the css every month. Wish this could be automated though :).
Or perhaps the plugin could have a configurable option to not render past months at all at the code level, would be a cleaner solution. But if adding a class is simpler and quicker to do, I don’t mind.
Again, thank you very much for your work on this plugin.
- The topic ‘Could you please add class "month-past" to each past month's div’ is closed to new replies.