Home › Forums › Calendar Products › Events Calendar PRO › Mini Calendar Widget – How do you change month to not be abbreviated?
- This topic has 10 replies, 6 voices, and was last updated 8 years, 10 months ago by Support Droid.
-
AuthorPosts
-
April 23, 2012 at 6:23 am #18126RobertParticipant
Currently the widget abbreviates the month in the “cal-header.” So that it is “Apr 2012.” How do you change it to be “April 2012”?
I can see in the table-mini.php file that it calls:
monthsShort[date(‘M’,$date)
Is there a “monthsLong” variable to call to show the full month instead of the abbreviated one?
Thanks for the help!
April 23, 2012 at 8:16 am #18156RobMemberHey Robert. Thanks for the note here. I believe this is doable, but am not positive…I’ve asked our dev Jonah (more knowledgeable at such issues than myself) to chime in directly when he hits the forums today. Stay tuned.
April 23, 2012 at 8:33 am #18159HenryMemberChange the ‘M’ to ‘F’
April 23, 2012 at 8:42 am #18161RobertParticipantHenry,
Thanks for the response. For some reason, it did not work. My full code is below:
monthsShort[date(‘F’,$date)]; echo date(‘ Y’,$date); ?>
You can view the site and what the widget does on it here: http://www.lynchvegas.com
The widget is in the footer of the page. Whenever I change it back to ‘M’ it works, but ‘F’ and other formats just delete the month completely like shown.
Any ideas?
Thanks!
April 23, 2012 at 9:51 am #18172HenryMemberHi Robert,
Try monthsFull
Looking at the-events-calendar.class.php I think this should display the full month name.
April 23, 2012 at 10:07 am #18174JonahParticipantHey Robert, this should do it:
echo date('F',$date); echo date(' Y',$date);
Just get rid of the monthsShort function…
April 23, 2012 at 10:43 am #18183HenryMemberYou could probably just do this:
echo date(‘F Y’,$date);
April 23, 2012 at 5:23 pm #18206RobMemberMultiple possible solutions for you there, Robert 🙂 Want to give one/each of them a go and let us know if it resolves this issue?
August 6, 2012 at 9:48 pm #23328JeremiahParticipantI was looking for this today.
Jonah’s solution works perfectly.
Thanks!August 7, 2012 at 2:31 pm #23370RobMemberFantastic to hear it, Jeremiah. Glad to hear this got you sorted. Please do reach out if we can do anything else down the road.
July 7, 2015 at 6:25 am #977523Support 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 ‘Mini Calendar Widget – How do you change month to not be abbreviated?’ is closed to new replies.