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 5 years, 8 months ago by J. Davis.
- AuthorPosts
- April 18, 2019 at 5:08 pm #796278Jawhar Ben FredjBlocked
Hello!
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: -)
Thanks
April 19, 2019 at 3:29 pm #796577Stacy LindKeymasterHi Jawhar,
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. DavisKeymasterHello Jawhar,
Thank you for clarification. You may try to override the following file
\wp-content\plugins\motopress-hotel-booking\templates\shortcodes\search\search-form.php
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:
\wp-content\themes\alpenhouse\hotel-booking\shortcodes\search\
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.
best regards,
J. Davis - AuthorPosts
- You must be logged in to reply to this topic.