Home › Forums › Calendar Products › Events Calendar PRO › Abbreviate days
- This topic has 6 replies, 3 voices, and was last updated 8 years, 7 months ago by Support Droid.
-
AuthorPosts
-
September 12, 2015 at 2:55 pm #1004605karenParticipant
I read, Chenge Monday to MON, but it no longer appears on line 29. the length of the days is effecting my month view. Can you help? I need to abbreviat the days of the week in Month view. thanks
September 14, 2015 at 6:57 am #1004806GeorgeParticipantHey @karen,
Happy to help here! I’m just curious, though, can you clarify exactly what you mean by your words here:
I read, Chenge Monday to MON, but it no longer appears on line 29
What does this mean? I’m sorry for my misunderstanding, I just don’t understand it 100% but want to so that I can best help you out 🙂
As for forcing the “three-letter” day style to display on your site, you should be able to do so by adding the following code to your theme’s functions.php file:
add_filter( 'tribe_events_get_days_of_week', 'tribe_force_shortened_week_day_names' );
function tribe_force_shortened_week_day_names( $days_of_week ) {
$days_of_week = Tribe__Events__Main::instance()->daysOfWeekShort;
return $days_of_week;
}
I hope that helps!
— George
September 14, 2015 at 11:21 am #1004945karenParticipant“Chenge Monday to MON” is the name of the article, but the code in this file has changed. I will try the functions.php, sounds like it might be a better option. thanks
September 15, 2015 at 7:01 am #1005224GeorgeParticipantThanks Karen, let us know how it goes! 🙂
September 15, 2015 at 10:10 am #1005331karenParticipantyeah, that did not appear to work. 🙁
September 16, 2015 at 12:15 pm #1005731GeorgeParticipantSorry to hear that Karen! It worked really well for me, so I’m not sure what went wrong with it on your site…
There are unfortunately not many more options for implementing this customization at this time 🙁 You could perhaps write a fancy JavaScript solution or something, but otherwise that filter is the only solution I can think of.
For one last attempt at getting this to work, would you mind posting your entire functions.php file into a Gist at http://gist.github.com, and then share a link to that Gist here? I might be able to spot something wrong with the file that could impact this, for example.
Thank you!
GeorgeOctober 1, 2015 at 7:05 am #1010405Support DroidKeymasterThis 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. -
AuthorPosts
- The topic ‘Abbreviate days’ is closed to new replies.