Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Hotel Booking Default number in search combo (Attributs)
- This topic has 3 replies, 3 voices, and was last updated 4 years, 1 month ago by J. Davis.
- April 18, 2019 at 5:08 pm #796278Jawhar Ben FredjBlocked
I’ve create two attributs : Adult and Child, and i would like to put in the search form default number adult: 1 and child: 0; (not like now adult:- and child: -)
ThanksApril 19, 2019 at 3:29 pm #796577Stacy LindKeymaster
Could you give a link to the form where you need the pre-set?April 19, 2019 at 3:43 pm #796582Jawhar Ben FredjBlockedApril 23, 2019 at 7:27 am #797468J. DavisKeymaster
Thank you for clarification. You may try to override the following file
to apply the first terms of attributes in the form by default. In order to make it properly and safe for updates of the plugin you need to copy the file and move its copy to the destination below:
So you will need to add the folders hotel-booking\shortcodes\search\ inside of your active theme directory.
Once the file search-form.php is moved properly you will need to open it with file editor, find the following line and remove it:
<option value=""><?php _ex( '—', 'Not selected value in the search form.', 'motopress-hotel-booking' ); ?></option>
Save the changes and go to preview your site.
- You must be logged in to reply to this topic.