- This topic has 5 replies, 3 voices, and was last updated 3 weeks, 1 day ago by
J. Davis.
- AuthorPosts
- June 2, 2022 at 10:22 am #1312555
Omar Del Castillo
ParticipantWhen 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.
June 6, 2022 at 10:55 pm #1314202J. Davis
KeymasterHi,
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. DavisDecember 7, 2025 at 2:15 pm #1813761eric Brabants
ParticipantIn my case I would like to know how to remove the following meta blocks
– the “description” (the array just under the title),
– the “excerpt”thank’s
Eric
December 16, 2025 at 3:14 am #1815495J. Davis
KeymasterHi Eric,
Thanks for your question. You can check the following article https://support.motopress.com/hc/en-us/articles/360013539291.
Or do you mean you need to disable the description for the list of accommodation types? Could you provide an example?December 16, 2025 at 5:39 am #1815532eric Brabants
ParticipantSo,
I use booklium theme, for 3 accommodations
I discribe each accommodation on a separate page, and on each page, I have a button (for a direct booking) that directs to the booking-formOn the booking-form there is, from top to bottom
– the tittle of the accommodation
– the description
– the gallery
– the excerptI need to hide in the booking form, either the description, or the excerpt. I don’t know yet which of the two I will hide
Have succesfully tested the modifications described in a post above of the functions.php in a child theme.
So I need the same but for the description and excerpt parthere a screen shot
December 16, 2025 at 1:13 pm #1815646J. Davis
KeymasterHi, you can delete the description and excerpt while editing the specific Accommodation Type. You can also use CSS to hide any specific section on the page.
Otherwise, you will need to override the file of the parent theme \booklium\template-parts\content-mphb_room_type.php - AuthorPosts
- You must be logged in to reply to this topic.
