Posted: October 1, 2015 at 6:31 am
|
Hello, I’m having an issue with datetimes on events. Similar to one had before (https://eventespresso.com/topic/changing-datetime-of-a-live-event/) This is what has been said to me: “When I add an event it won’t save when I want to stop selling tickets and also the dates of the event.” Having a look, on the date times, if i use and click a date on the calendar the times disappear. I selected the dated on a test event and when I saved it reverted to now. If i manually type the dates it seems ok though?!?!? To confirm these are for new events. Thanks in advance. |
Hi, the following sounds like there is a conflict occurring:
I double-checked this on a testing site using the current software: Have you tried temporarily deactivating any new plugins that were recently installed? — |
|
|
Hi Lorenzo… |
Hi Declan, That does not look like our date time selector so this shares some insight on your earlier questions and concerns. Did you deactivate all plugins and reactivate only Event Espresso and re-test? A plugin with a date or calendar option is likely interfering here (e.g an appointment or booking plugin). Is anything like that running on your site? — |
|
|
Hi Lorenzo, I deactivated everything but EE… done that just now though and still the same. |
Your active WordPress theme is likely swapping in its calendar datepicker. Does the issue go away if you switch to the default theme? |
|
|
yep… the date picker was fine when reverted to the default theme. Wasn’t aware the theme had a datepicker!?!? How do I go about fixing this? |
|
Hello… sorry to nag re this…. |
You find the code in the theme that adds the datepicker script. If you’re not using it anywhere else, it might just work to comment out the code that adds the datepicker script. Or, you wrap it in a conditional so it only loads where it’s needed. The theme author may be able to help you target the code that adds the theme’s datepicker script. |
|
|
Hi Josh. Was there an issue with the site this morning? I kept getting logged out! I’ve gone through the theme files and deleted any reference to the datepicker and time picker. Looking at chrome developer tools its still calling for files that ive deleted but its still getting them?!?! Thanks in advance. |
Yes, it should be fixed now.
Within your theme files search for ‘datepicker’. You should find a call that starts with either: wp_register_script or wp_enqueue_script Comments those out, refresh the event editor and see if the correct datepicker for EE loads. |
|
|
Hi Tony. Warm Regards, |
Ok that gets you up and running, but note that anywhere else that the theme is execpting to use the datepicker function may not work. How much of a problem that is depends if you use the themes datepicker function (I’m guessing not by your response above) but its something to be aware of. The other solution is to remove the themes datepicker only within the EE pages. To do this you need to create a custom plugin, which checks if you are within the event editor, then re-register the themes version of the datepicker and continue using EE’s. However that requires digging deeper into the theme and may be unnecessary for your use case. Either way I’m glad its now working 🙂 |
|
The support post ‘Datetime issue’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.