Change placeholder values for Adults and Children in Availability search on homepage

denisk's picture
denisk
Wed, 10/26/2016 - 10:02
#1
Change placeholder values for Adults and Children in Availability search on homepage

Hello, 

Just wanted to know how to change placeholder values for Adults and Children in Availability search on homepage. Default values are "2" for Adults and "0" respectively, and I want it to be "Guests" and "Children". Thanks in advance.

khoa's picture
khoa
Fri, 10/28/2016 - 02:34

Hi,

Please open template.php file(sites\all\themes\md_hillter), then add this code:

$form['rooms_fieldset']['group_size_adults:1']['#options'][0] = t('Adults');$form['rooms_fieldset']['group_size_adults:1']['#default_value'] = 0;$form['rooms_fieldset']['group_size_children:1']['#options'][0] = t('Children');$form['rooms_fieldset']['group_size_children:1']['#default_value'] = 0;

below

$form['rooms_date_range']['rooms_start_date']['#suffix'] = '<div class="arrival element-invisible">' . t('Arrival Date') . '</div></div>';
$form['rooms_date_range']['rooms_end_date']['#suffix'] = '<div class="departure element-invisible">' . t('Departure Date') . '</div></div></div>';

Thanks!

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.