Home › Forums › Calendar Products › Events Calendar PRO › Customize event list widget to show OCT 16 instead of FRI 16
- This topic has 4 replies, 3 voices, and was last updated 10 years, 6 months ago by
Support Droid.
-
AuthorPosts
-
October 16, 2015 at 10:38 am #1015368
Canton
ParticipantI love the way the event list widget looks:
https://www.dropbox.com/s/zku8rve4kw4twwj/Screenshot%202015-10-16%2011.33.08.png?dl=0
However, since our events are often weeks or even months apart, it’s not at all helpful for visitors to see the day of the week and the date of the month in the little box next to each event. (FRI 16)
What would make a lot more sense in our case would be to show the month and the date of the month. (OCT 16)
Can you give me some guidance on where I might customize this, so that we’re showing M/d instead of D/d ?
-
This topic was modified 10 years, 6 months ago by
Canton.
October 16, 2015 at 11:16 am #1015383Brook
ParticipantHowdy Canton,
I would love to help you with that. That’s a good idea, I am actually log something similar as a suggestion for our devs to implement at some point.
You can make this modification yourself easily enough. It will require a small bit of familiarity with WP Theming, and our Themer’s Guide can probably get you most of the way there. Using that guide create an override for this file: /plugins/events-calendar-pro/src/views/pro/widgets/modules/single-event.php. On line 24 you will see where it creates the dayname section. If you change this:
date_i18n( 'D', $postDate )to this:
date_i18n( 'M', $postDate )You will get the month instead. Does that all make sense? Did that work?
Cheers!
– Brook
October 16, 2015 at 1:40 pm #1015427Canton
ParticipantWorked great, thanks: https://www.dropbox.com/s/uj2l06uf0g5kclx/Screenshot%202015-10-16%2014.39.04.png?dl=0
Note: Your trouble ticket emailing system mangled up your search/replace code some. I figured it out anyway, but I figure you might want to know that your emailing system is unnecessarily HTML-entitying in some cases:
https://www.dropbox.com/s/6s2cjy8yhw1rgng/Screenshot%202015-10-16%2014.39.37.png?dl=0
October 17, 2015 at 8:53 am #1015574Brook
ParticipantThank you Canton! That is good to know. I will look into getting that fixed.
Happy you got it corrected. Let us know if you ever need anything else. Cheers!
- Brook
November 1, 2015 at 6:05 am #1020584Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
This topic was modified 10 years, 6 months ago by
-
AuthorPosts
- The topic ‘Customize event list widget to show OCT 16 instead of FRI 16’ is closed to new replies.
