Hi
I want the Date Picker to have a bigger range so that it would cover the 1800’s as the website lists all of the Graves in a cemetery and some even go back even further.
I followed and changed the 3 yearRange’s then seen the other way by creating a JS file and loading it via the functions.php file.
Using the JS and Functions route, the Year changes to 1819 upto 2119 as the yearRange is set to -200:+100″. Also since using a Child theme I copied the JS file in the Child theme’s folder under JS and I changed the get_template_directory_uri()
to get_stylesheet_directory_uri()
.
I then checked the source code in the Dashboard and the required JS file was loaded.
So when I select a date, I can go from 1819 to 2119 not only that when I select the date and update the page the date changes to the current date.
Why won’t it save the selected date and then inserts the current date using the method suggested in the link above?
Thanks
Colin
Hi
Just an update. The problem mentioned above was through Localhost i.e. demo website but when I switched to my live website the behaviour above did not happen.
It allowed me to add the date then edit the year part to what I wanted then saved it and the date stayed the same.
So wasted lots of time to try and solve the problems and got nowhere. At least I can move on but it would be nice to know why it doesn’t work on localhost…
Any ideas?
Colin