Hi!
Could you please let me know, if there is any code to make checkbox "All day" enabled by default only on the front-end event submission page?
The idea is, that it is needed only the start date without start time on front-end event submission page (no ending date and no ending time)
Hope someone already asked you about that and there is already solution or something similar, I would be very appreciated for helping me.
The all day value was not being passed because the element was missing in your builder form, so I've inserted the value along with the start date input.
UPDATE
I think, I've figured it out with css. The only thing, now I need to hide "time 00.00" on the frontend agenda and calendar view. I found the comment https://codecanyon.net/item/stachethemes-event-calendar-wordpress-events-calendar-plugin/16168229/comments?page=33&filter=all#comment_16211456
There are a lot of new updates after publishing this comment, so is there any solution to change
with help of functions.php? To be able update the plugin in future without any changes in code...
Remove your changes and open your theme functions.php file.
At the bottom add this filter:
Stachethemes Developer
Thank you so much!!!! )
The only thing is, that
is still showing in front view (agenda, month, week modes), pls find screenshots below.
And there is no css class on time to make it display none...
_________________________________________________
Please, if it could be possible, one last question:
The file is class.builder-elements.php in .../plugins/stachethemes_event_calendar/assets/php/
Lines 35-41
Is there any possibility to change (using functions.php) this
to this
- rename Address to Theater and delete Coordinates and Details in frontend event submission...
I am very sorry to bother you, but this is the last step to make your plugin perfect for me )) and make my update process much faster
Here's the revised code:
Regarding the time 00:00 : were these events submitted before adding this filter?
Stachethemes Developer
The Location class was called outside its namespace and this was causing the issue. I've placed the code in your theme child functions.php file.
Stachethemes Developer
Thank you! Much better, but still, the only thing is, that it is showing 00:00 - 00:00 (calendar tooltip and agenda, week views) ...
I am trying to submit event after adding code to functions.php...
Step by step:
- pasted the code to functions.php
- on the frontend I submited the event
- next, as an admin, I approve it in the admin area (maybe, here could be mistake... but I haven't edited the event, only approved it)
- all looks fine, but on the front it shows 00:00 - 00:00 ...
PS. Unchecking "Require approval by admin for events added from font-end" doesn't help...
screenshots
The all day value was not being passed because the element was missing in your builder form, so I've inserted the value along with the start date input.
Should be ok now.
Stachethemes Developer
Thank you so much!!!
It's perfect now!