Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Neil,

    Can you try this?

    .wpbs-day.wpbs-today>span {
    font-weight:bold;
    }

    This makes today ‘bold’.

    Thread Starter kakashi-hatake

    (@kakashi-hatake)

    Hi there,

    Thank you so much for the reply but it isn’t working. I managed to do it with javascript/jQuery. Below is the code, I hope it would help somebody:

    
        var monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
        var getd = new Date();
        var daydate = getd.getDate();
        $( 'div.wpbs-calendar .customSelect_wpbs span.customSelect_wpbsInner:contains(' + monthNames[getd.getMonth()] + ')' ).parents('.wpbs-heading').parents('.wpbs-calendar').addClass('currentmonth');
        if($('.wpbs-calendar.currentmonth ul li > span.wpbs-day-split-day').is(':contains('+ daydate +')')) {
          $('.wpbs-calendar.currentmonth ul li > span.wpbs-day-split-day:contains('+ daydate +')').parents('li').addClass('todaysdate');
        }
    

    Please wrap the above code in “document.ready” function.

    The above code will add “todaysdate” class to current date, then you can style it.

    In order to check that is it working, just go to https://www.wpbookingsystem.com/tour/
    and execute the above code using chrome inspector in console. There are some demo calendars, you can inspect them and you will see that the class has been added.

    Working demo: https://fxindex.net/?speciality&location&um_search=1 in calendar tab.

    Kind regards,
    Neil B.

    Thanks for your contribution!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Current Date’ is closed to new replies.