• Resolved zzoli2019

    (@zzoli2019)


    Is there a way to have a different number of months displayed for the calendar in desktop view, and mobile view. For example display 3 months in desktop and only 1 on mobile? (without too much hacking). Thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author codepeople

    (@codepeople)

    Hi,

    Add the following code into the JavaScript customization section (Appointment Hour Booking menu >> General Settings >> Edit Scripts):

    jQuery(document).one('showHideDepEvent', function(){
       (function($) {
           if($(window).width() > 500){
             $( ".dfield .hasDatepicker" ).datepicker( "option", "numberOfMonths", 3 );  
           }  
       })(jQuery);
    });

    … and keep the number of months to be displayed set to 1 in the settings. That way in screen resolutions bigger than 500 pixels the number of months displayed will be automatically changed to 3.

    Thank you for using the plugin!

    Thread Starter zzoli2019

    (@zzoli2019)

    Great, thanks for the quick help!
    Great plug-in by the way ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘mobile view for calandar’ is closed to new replies.