Solution on datepicker on mobile devices

  • This topic has 16 replies, 7 voices, and was last updated 2 months ago by J. Davis.
Viewing 2 posts - 16 through 17 (of 17 total)
  • Author
    Posts
  • #1157184
    Andre Flores
    Moderator

    Hello Madalena,

    It is expected to be included in the next Hotel Booking plugin update release. You may try the following suggestion from one of our users as a temporary solution:

    This plugin file needs to be edited:

    /public_html/wp-content/plugins/motopress-hotel-booking/templates/shortcodes/search/search-form.php

    line 34

    i just added inputmode=”none” below the type=”text”

    id=”< ?php echo esc_attr( 'mphb_check_in_date-' . $uniqid ); ?>”
    data-datepick-group=”< ?php echo esc_attr( $uniqid ); ?>”
    value=”< ?php echo esc_attr( $checkInDate ); ?>”
    placeholder=”< ?php _e( 'Check-in Date', 'motopress-hotel-booking' ); ?>”
    required=”required”
    type=”text”
    inputmode=”none”
    name=”mphb_check_in_date”
    class=”mphb-datepick”
    autocomplete=”off”

    and line 54 the same for the checkout date i just added the same line here too

    id=”< ?php echo esc_attr( 'mphb_check_out_date-' . $uniqid ); ?>”
    data-datepick-group=”< ?php echo esc_attr( $uniqid ); ?>”
    value=”< ?php echo esc_attr( $checkOutDate ); ?>”
    placeholder=”< ?php esc_attr_e( 'Check-out Date', 'motopress-hotel-booking' ); ?>”
    required=”required”
    type=”text”
    inputmode=”none”
    name=”mphb_check_out_date”
    class=”mphb-datepick”
    autocomplete=”off”

    Regards,
    Andre

    #1160203
    J. Davis
    Keymaster

    Hi,

    We are delighted to let you know that we have just released the Hotel Booking plugin v. 3.9.9 update, where we have adjusted the form for mobile devices and now there is no keyboard appearing.

    Feel free to update the plugin to get the form updated.

    best regards,
    J. Davis

Viewing 2 posts - 16 through 17 (of 17 total)
  • You must be logged in to reply to this topic.