Tagged: datepicker, remove, year
Hello, is there a way to remove year from datepicker in contact form, so we have only DD/MM?
Thanks!
Hey vadikcoma,
Is this from within the Enfold form, or a third party plugin?
Best regards,
Jordan Shannon
Hi Jordan, it’s from default Enfold form
Hi,
Find the following in framework/php/class-form-generator.php (around line 411):
$p_class = $required = $element_class = $value = $extra = "";
$date_format = apply_filters('avf_datepicker_dateformat', 'dd / mm / yy');
$placeholder_text = 'DD / MM / YY';
replace with
$p_class = $required = $element_class = $value = $extra = "";
$date_format = apply_filters('avf_datepicker_dateformat', 'dd / mm');
$placeholder_text = 'DD / MM';
Best regards,
Jordan Shannon
Thank you, works perfectly!
Is there a way to remove year dropdown from widget itself?
http://ladycard.comadev.noc.lv/ – in the bottom of the page
Hi,
You can add the following to quick css:
select.ui-datepicker-year{
display:none!important;
}
select.ui-datepicker-month{
width:100%!important;
}
Best regards,
Jordan Shannon
Perfect! Thanks!