WebmasterPRBE
Forum Replies Created
-
I found a way that the calendar does not show the end time onmouseover.
It will still show in a post if you use the feature to create post for an event.BethAc1 I would also recommend you to update to the latest version of WordPress. If you or your webmaster use the automatic update function of WordPress, nothing disastrous will happen ;).
Now how to avoid showing end time 00:00:00
Go to the file ec_js.class.php in folder /wp-content/plugins/events-calendar
Now look for the following code on line 399 and line 400
if (!empty($endTime) && !empty($startTime) || !is_null($endTime) && !is_null($startTime)) $output .= '<div class="EC-tt-endtime"><span class="EC-tt-label EC-tt-endtime-label">'._c('End Time','events-calendar').': </span><span class="EC-tt-data EC-tt-endtime-data">'.$endTime.'</span></div>';
simply put // before line 399 and line 400 so that it will look something like this
// if (!empty($endTime) && !empty($startTime) || !is_null($endTime) && !is_null($startTime)) // $output .= '<div class="EC-tt-endtime"><span class="EC-tt-label EC-tt-endtime-label">'._c('End Time','events-calendar').': </span><span class="EC-tt-data EC-tt-endtime-data">'.$endTime.'</span></div>';
this will avoid the script to show the end time onmouseover in the sidebar widget or the large calendar. I am not sure about that. Hopefully in both.
If it only works in one of them, it’s quite well possible I edited another file, too. I just don’t remember which oneI thought there were four lines to comment out, but I see I only did two lol
The end time field in your backend does NOT require a numeric value, so I usually put a hyphen there, in “publish-event-as-post” it will show like this then:
End time:-