Calendar search by date – currnet date

Home Forums Calendar Products Events Calendar PRO Calendar search by date – currnet date

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1294377
    Miroslav
    Participant

    Hi,

    I need some help in styling calendar pop out selector in search by date field.
    I would like to have today in different color so it is easier to spot, like in a attached picture.

    Could you please help me out with finding right selector for that.

    Thank you and best regards,
    Miroslav

    #1295974
    Andras
    Keymaster

    Hello again Miroslav,

    Unfortunately there is no specific selector for “today’s date”. You would need some calculations and possibly javascript to get that done. Something like this:

    • Today’s date: 9th
    • What is the first day of the month: June 1 is Thursday
    • So there are 4 days in that week (Thu, Fri, Sat, Sun)
    • 2nd week starts with 5th, third week starts with 12th etc.
    • So in which row would 9 be: June 9 is in row #2
    • Which column would 9 be: it’s a Friday, so column #5
    • And then you can do the css like this:
    .datepicker-days table tr:nth-child(2) td:nth-child(5) {
    color: red;
    }

    That’s a rough approach, but that’s about how much I can help with this. We are limited in supporting and developing customization requests.

    Hope it gets you started.

    Cheers,
    Andras

    #1314969
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Calendar search by date – currnet date’ is closed to new replies.