Booking-Form

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1312555
    Omar Del Castillo
    Participant

    When someone in the Room List page and click “Book”, the button send the user to website.com/accomodation/room/#booking-form-777. That page displays the gallery, “Details”, “Availability Calendars” and the “Reservation Form”. I want that this page only displays the Reservation Form.

    #1314202
    J. Davis
    Keymaster

    Hi,

    You may add the lines below to the functions.php file of the theme to remove the default meta blocks:

    remove_action( 'mphb_render_single_room_type_metas', array( '\MPHB\Views\SingleRoomTypeView','renderGallery' ), 10 );
    
    remove_action( 'mphb_render_single_room_type_metas', array( '\MPHB\Views\SingleRoomTypeView','renderAttributes' ), 20 );
    
    remove_action( 'mphb_render_single_room_type_metas', array( '\MPHB\Views\SingleRoomTypeView','renderDefaultOrForDatesPrice' ), 30 );
    
    remove_action( 'mphb_render_single_room_type_metas', array( '\MPHB\Views\SingleRoomTypeView','renderCalendar' ), 40 );

    It is recommended to install and activate the child theme and add this code to the functions.php file of this theme to keep the changes after theme update.

    best regards,
    J. Davis

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