Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #783180

    Hello, is there a way to remove year from datepicker in contact form, so we have only DD/MM?

    Thanks!

    #783196

    Hey vadikcoma,

    Is this from within the Enfold form, or a third party plugin?

    Best regards,
    Jordan Shannon

    #783197

    Hi Jordan, it’s from default Enfold form

    #783557

    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

    #783610

    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

    #783735

    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

    #783748

    Perfect! Thanks!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Remove year from datepicker’ is closed to new replies.