Re-size calendar pop-up to better fit mobile screens

Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Hotel Booking Re-size calendar pop-up to better fit mobile screens

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1487091
    Ryan Koss
    Participant

    I am trying to get the calendar pop-up to properly fit mobile screens. Currently, when opened, the calendar pushes the edges of the screen, which makes for an unfriendly mobile experience. I’ve tried various forms of CSS, with no success.

    #1489953
    J. Davis
    Keymaster

    Hi Ryan,

    Thanks for your question. Could you please provide your site URL and specify the OS of the device you have used to test it? Does it occur on iOS or Android or both? Thanks

    #1489972
    Ryan Koss
    Participant
    This reply has been marked as private.
    #1490301
    J. Davis
    Keymaster

    Hi Ryan,

    Thanks for the provided link. By default, the calendars should fill 100% width and take place one under another (vertically) on the mobile device. Perhaps some other plugin or theme overrides the style of your calendar. You may try to navigate to Accommodation > Settings and find the Calendar Style option to select one of the predefined styles.
    If this does not help you may apply the style below at Appearance > Customize > Additional CSS:

    @media (max-width:720px){
    .datepick-popup{
        right:10px;
        left:10px;
    }
      
    .datepick.datepick-multi.mphb-datepick-popup{
      width:auto !important;
      float:none;
    }
    
    .datepick-month {
      width: 100%;
    }
    }

    Let me know if it is helpful.

    #1499071
    Robert
    Participant

    I’ve had the same issue as this but the CSS that you have provided has fixed it. (I was using an Android device)

    Thank you for providing the css.

    #1499690
    J. Davis
    Keymaster

    Hi Robert, I’m happy to know it was helpful. Thanks.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.