[Plugin: Job Manager] Changing Year Range
-
I was trying to figure out how to change the range of the years in date selector and I found … not a really great way to do it, but works. It’s all about changing the source code a bit, after all it uses jqueryUI.
1 – Go to wordpress panel > plugins > editor
2 – Select JobManager and find the file ‘jobmanager/front-end.php’
3 – Search for this code on line 430:
jQuery(“.datepicker”).datepicker({dateFormat: ‘yy-mm-dd’, changeMonth: true, changeYear: true, gotoCurrent: true});By default, Jquery UI uses +-10 years from the current year. So, insert this piece of code with the years you want.
jQuery(“.datepicker”).datepicker({yearRange:”-60:+10″,dateFormat: ‘yy-mm-dd’, changeMonth: true, changeYear: true, gotoCurrent: true});
That’s it.
The topic ‘[Plugin: Job Manager] Changing Year Range’ is closed to new replies.