WordPress.org

Ready to get started?Download WordPress

Forums

Availability Calendar
Could you please add class "month-past" to each past month's div (1 post)

  1. jardokraka
    Member
    Posted 1 year ago #

    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.

    http://wordpress.org/extend/plugins/availability/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.