Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Hotel Booking Remove the search form on Accomodation types pages
- This topic has 7 replies, 3 voices, and was last updated 3 years, 9 months ago by Andre Flores.
- AuthorPosts
- July 20, 2020 at 11:27 am #981726Mark RedfordParticipant
Hello,
I have set up accommodation types and have restricted each one to certain minimum and maximum guest numbers through the use of attributes. My website search forms work fine for this by adding in my “guest” attribute to the search form shortcode, however, on each accommodation type page eg mywebsite.com/accommodation/villa1 – an availability calendar and search form are outputted automatically below the text that I have created for each villa. This search form just has date inputs and when completed it returns all properties available regardless of guest numbers, which I don’t want as I need to add my guest attribute to the search form to control the search results.Therefore I need to remove this automatic inclusion of the search form on the accommodation types page – or add the ability to include my custom guest attribute in this search form – but removing the form would probably be easier.
Is this possible?
July 21, 2020 at 6:38 am #982006Andre FloresModeratorHello, Mark!
You may simply hide the search form on single accommodation pages by adding the following code under Appearance ->Customize ->Additional CSS:
.single-mphb_room_type .mphb-booking-form { display: none; }
Regards,
AndreJuly 21, 2020 at 9:14 am #982045Mark RedfordParticipantThanks Andre. This is is great!
July 22, 2020 at 6:45 am #982491Andre FloresModeratorHi, Mark!
You are always welcome! How’s been your experience with the Booklium theme so far? It would be much appreciated if your leave your positive feedback about it in our Facebook Community.
Thank you in advance.Regards,
AndreJuly 22, 2020 at 9:42 am #982566Mark RedfordParticipantMy experience with the booking plugin has been really good. I’m using it with a Studiopress theme but the plugin has integrated seamlessly with it, so overall very happy.
Thanks, as always, for your help.July 23, 2020 at 6:27 am #982947Andre FloresModeratorHi, Mark!
Thank you for your kind words, it is much appreciated!
Regards,
AndreFebruary 15, 2021 at 10:31 am #1074715Diana RobertsParticipantAndre,
Is there a way to hide the search form on a particular accommodation?
February 16, 2021 at 12:22 am #1074955Andre FloresModeratorHello Diana,
Yes, you may hide specific accommodation search form via CSS, e.g. by adding the following code under Appearance ->Customize ->Additional CSS:
#booking-form-777 { display: none; }
Where “777” is the accommodation type ID. You may find the ID by navigating to Accommodation ->Accommodation Types tab and hovering the accommodation type in question.
Regards,
Andre - AuthorPosts
- You must be logged in to reply to this topic.