This topic contains 3 replies, has 3 voices, and was last updated by J. Davis 3 months, 3 weeks ago.
- April 18, 2019 at 5:08 pm #796278
Jawhar Ben FredjParticipant
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 #796577
Could you give a link to the form where you need the pre-set?April 19, 2019 at 3:43 pm #796582
Jawhar Ben FredjParticipantApril 23, 2019 at 7:27 am #797468
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.