Customize event list widget to show OCT 16 instead of FRI 16

Home Forums Calendar Products Events Calendar PRO Customize event list widget to show OCT 16 instead of FRI 16

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1015368
    Canton
    Participant

    I 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.
    #1015383
    Brook
    Participant

    Howdy 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

     

    #1015427
    Canton
    Participant

    Worked 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

    #1015574
    Brook
    Participant

    Thank 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
    #1020584
    Support Droid
    Keymaster

    This 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.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Customize event list widget to show OCT 16 instead of FRI 16’ is closed to new replies.