Hide the event times in Event Calendar widget

Home Forums Calendar Products Events Calendar PRO Hide the event times in Event Calendar widget

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #22951
    Matt
    Member

    On the home page of http://www.bluewater.org in the lower-right column is a widget displaying certain major events. The issue we’re having is that multiple-day events (say, a festival running Friday, Saturday, and Sunday) often have different start/end times each day. We don’t want to have a separate event for each of those days, so we’re wondering how to hide the start/end times from showing, but leave the dates visible.

    (For now, we just have the events listed as All Day.)

    Thanks for your help!
    Matt

    #23080
    Rob
    Member

    Hey Matt. Thanks for the note on this, and my apologies for the inconvenience you’re faced with so far. I am seeing the issue on your site there and this should be relatively easy by just doing a template override of the widget itself.

    Create a new ‘events’ folder in your theme directory and copy over the events-list-load-widget-display.php file. There you can modify that copied file and change the date/time output as you see fit. The WordPress codex on date/time can give you what you need on the formatting front: http://codex.wordpress.org/Formatting_Date_and_Time.

    That help? Let me know if not.

    #23308
    Matt
    Member

    That didn’t work. I can’t figure out where to change the date, time at.

    #23368
    Rob
    Member

    Alright, Matt. No problem – let me get Casey from our dev team to try and point you in the right direction on this.

    #23391
    Casey
    Participant

    Matt,
    I’m more than happy to help with this. If you don’t have an ‘Events’ directory in your theme directory, then you’ll need to perform a template override (https://theeventscalendar.com/faq/what-are-template-overrides-and-how-do-i-do-them/). Once you’ve done this go to YOUR_THEME_DIRECTORY/events/events-list-load-widget-display.php and edit this code starting on line 45: https://gist.github.com/3291389

    With this code: https://gist.github.com/3291479

    That should remove the time from events that are multi-day. Just let me know if you have any more questions. Always happy to help. Thanks!

    #23480
    Matt
    Member

    Hmm. I did that, but its not appearing on the front end of the site. The times are still there.

    #23697
    Rob
    Member

    Gotcha – thanks for the follow-up, Matt. Not sure if Casey saw your last note but I’ve passed it back his way just to be safe. Stay tuned!

    #23745
    Casey
    Participant

    Matt,
    Can you post the code in your ‘events-list-load-widget-display.php’ file to https://gist.github.com/ and share the link with me to review? Thanks!

    #23867
    Matt
    Member
    #26006
    Leah
    Member

    Hi Matt,

    Are you still having trouble with this? I apologize that no one has gotten in touch sooner.

    ~Leah

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Hide the event times in Event Calendar widget’ is closed to new replies.