Hide Day of the week from This Week Widget

Home Forums Calendar Products Events Calendar PRO Hide Day of the week from This Week Widget

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1161867
    themet
    Participant

    Hello.

    We are experimenting with the This Week Widget shortcode. It’s a great tool, but seems to include redundant info by default/mistake.

    Each event on a given day uses the Date Format set in Events -> Settings -> Display -> Date Without Year prior to the event’s start time. As we are already looking at a calendar and the day of the week and day of the month are at the top of this column, it seems cluttered to repeat the day of the week and day of the month again with each event. We have set the date format as ‘l F j’ so that the tribe_events_list shortcode displays the day of the week month and numeric day. But using that same format for This Week and for Events List is presenting a visual problem.

    Is there a setting we are missing in this? Is there an alternative method of editing the date format only for This Week?

    Thanks so much.

    #1161988
    Andras
    Keymaster

    Hello The MET,

    Hey, a big thank you for using our plugins and welcome to the forums! Let me help you with that question.

    There is no setting where you can adjust only the date format in the widget. I believe the easiest would be to create a custom template for that. In this knowledgebase article you should find everything to get started. Look at the ‘Customizing the This Week Widget’ section. And I believe you will need to remove one line from the custom wp-content\plugins\events-calendar-pro\src\views\pro\widgets\this-week\single-event.php file.

    Configuring the Events By Week Widget

    I hope this helps and please, do let me know if you need more support on this.

    Cheers,
    Andras

    #1162343
    themet
    Participant

    Thanks. I’ve gotten that far. Is there a function that will display just the time of the event? We can then just drop that in place of <?php echo tribe_events_event_schedule_details( $event->ID ) ?>

    #1162678
    Andras
    Keymaster

    Hey The MET,

    I believe tribe_get_start_time() and tribe_get_end_time() are the functions you need.

    https://theeventscalendar.com/function/tribe_get_start_time/

    https://theeventscalendar.com/function/tribe_get_end_time/

    You can find a full list of available functions in our technical documentations page, if you would need anything more:

    https://theeventscalendar.com/functions

    Let me know if this helps and if I can be of any more help.

    Cheers,
    Andras

    #1162957
    themet
    Participant

    Thanks Andras! Great resource.

    #1162993
    Andras
    Keymaster

    Hello again The MET,

    Great, glad it helped! I am going to go ahead and close this ticket, but if you need help on this or something else, don’t hesitate to open a new topic.

    Cheers,
    Andras

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Hide Day of the week from This Week Widget’ is closed to new replies.