Home › Forums › Calendar Products › Events Calendar PRO › Hide Day of the week from This Week Widget
- This topic has 6 replies, 3 voices, and was last updated 9 years, 8 months ago by
themet.
-
AuthorPosts
-
September 8, 2016 at 8:42 pm #1161867
themet
ParticipantHello.
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.
September 9, 2016 at 6:47 am #1161988Andras
KeymasterHello 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.
I hope this helps and please, do let me know if you need more support on this.
Cheers,
AndrasSeptember 9, 2016 at 8:16 pm #1162343themet
ParticipantThanks. 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 ) ?>September 12, 2016 at 12:47 am #1162678Andras
KeymasterHey 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,
AndrasSeptember 12, 2016 at 1:13 pm #1162957themet
ParticipantThanks Andras! Great resource.
September 12, 2016 at 2:09 pm #1162993Andras
KeymasterHello 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 -
AuthorPosts
- The topic ‘Hide Day of the week from This Week Widget’ is closed to new replies.
