This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Date picker

#53997
Ernest MarcinkoErnest Marcinko
Keymaster

Hi!

Yes, it should be possible to do with a small custom code snippet:

add_action('wp_footer', 'wp_footer_datepicker_range_fix', 9999);
function wp_footer_datepicker_range_fix() {
	?>
	<script>
	(function($){
		setTimeout(function(){
			$('.asp_w .hasDatepicker').datepicker('option', 'yearRange', '-100:+100')
		}, 500);
	})(jQuery);
	</script>
	<?php
}

Try adding this code via the Code Snippets plugin or to the functions.php file in your theme/child theme directory – make sure to have a full server back-up first for safety. For more details you can check the safe coding guidelines.