Home › Forums › Calendar Products › Events Calendar PRO › Months are displaying instead of days in calendar
- This topic has 14 replies, 3 voices, and was last updated 9 years, 3 months ago by
Fadi.
-
AuthorPosts
-
January 18, 2017 at 1:00 pm #1220442
Fadi
ParticipantSuddenly the calendar is displaying months instead of days
ex
http://ecoledeconduiteandys.ca/en/registration-pierrefonds/January 18, 2017 at 10:23 pm #1220767George
ParticipantI’m sorry to hear this, @Fadi!
I cannot recreate this behavior, so I’m curious: can you do the complete set of troubleshooting steps on this page → https://theeventscalendar.com/knowledgebase/testing-for-conflicts/ After EACH STEP in that process, check back on your month view and see if things go back to normal anywhere along the way.
Let me know what you find!
GeorgeJanuary 19, 2017 at 10:40 am #1221068Fadi
ParticipantHi
If you look to a previous thread (https://theeventscalendar.com/support/forums/topic/display-days-with-3-letters-in-mini-calendar-shortcode/), I have replaced line 16 in the the mini-calendar widget grid.php min by short
($days_of_week = tribe_events_get_days_of_week( ‘short’ );) and it was working well.
Lately, it is generating wrong displayJanuary 19, 2017 at 6:51 pm #1221277George
ParticipantHey Fadi,
Can you make a backup of any custom code you have made, and then please remove ALL CUSTOM CODING from your site?
Once you do this, how do things display?
We just need to be able to pinpoint the exact source of the problem, and this step will help do that.
Let us know what you find!
Thanks,
GeorgeJanuary 20, 2017 at 5:12 am #1221462Fadi
ParticipantWhen I remove custom coding I have default display. Days in one letter (M, T, …).
Only when I switch min to short line 16 in the the mini-calendar widget grid.php, we have months instead of days
January 20, 2017 at 11:17 am #1221650George
ParticipantThanks Fadi, so it sounds like your custom coding is the source of the problem here.
To help me help you, can you please put your custom file back in the state where the issue happens with the months instead of days? Once this file is back to being broken, copy and paste the full content of the file’s code into a Gist at http://gist.github.com/ .
1. Then share a link to that Gist here in your reply.
This will let me take a look at the full, complete file and try to recommend a solution that will help it not be broken.
2. Next, can you please describe what the goal of your custom coding is? What change are you trying to make with your custom code?
Thanks,
GeorgeJanuary 20, 2017 at 11:30 am #1221661Fadi
Participanthttps://gist.github.com/anonymous/798997685453cd91f1ce29c3b0d8455b
I have only hidden some lines in single-event and details by deleting them
and replaced min by short to show days in 3 letters in order to translate them to frenchJanuary 23, 2017 at 12:05 pm #1222521George
ParticipantHey Fadi,
Thank you for this.
Are you saying that you cannot translate the words into French without modifying the code?
If so, this should not be the case and you should be able to use normal translation methods—even with a plugin like WPML—to show the day names and other calendar content in French.
Is there a specific reason why are you trying to do it with custom coding? We should solve this problem because it is NOT recommended to make translations directly via custom code.
Thank you,
GeorgeJanuary 23, 2017 at 12:10 pm #1222531Fadi
ParticipantI am not translating via custom code. ‘short’ provide me days in 3 letters in order to translate with WPML.
If I use default display, I have problem with ‘T’ tuesday and thursday, ‘S’ saturday ans sunday when translating from english to french
January 24, 2017 at 11:10 am #1223116George
ParticipantHey @Fadi,
What I would recommend is that you remove all custom coding from your site.
Next, if you’re using WPML, please make sure you that you set up The Events Calendar and Events Calendar Pro with WPML following the exact steps in these Knowledgebase articles:
• https://theeventscalendar.com/knowledgebase/wpml-support/
• ⭐️ https://theeventscalendar.com/knowledgebase/setting-up-the-events-calendar-with-wpml/
• ⭐️ https://theeventscalendar.com/knowledgebase/creating-translations-for-events-using-wpml/☝️ Let me know if once you remove all custom coding from your site and then set up WPML with our plugins exactly as described in the above articles if anything improves!
Thanks,
GeorgeJanuary 24, 2017 at 3:34 pm #1223259Fadi
ParticipantNothing changed.
January 24, 2017 at 9:10 pm #1223366George
ParticipantHey Fadi,
1. Have you removed all custom coding from your site?
2. Next, when you say “Nothing changed”, can you please clarify this? The default display is “Days in one letter”, as you describe: M, T, W, etc. If this is NOT what you want, can you please clarify what you want instead of this Days in One Letter display?
Thank you for your patience,
GeorgeJanuary 26, 2017 at 10:31 am #1224532Fadi
ParticipantI have deleted some WPML string translations and redone some of the procedure described in the links provided and it works now with days one letter
ThanksJanuary 27, 2017 at 10:03 am #1225274George
ParticipantGlad to hear it, Fadi!
Cheers,
George -
AuthorPosts
- The topic ‘Months are displaying instead of days in calendar’ is closed to new replies.
