Months are displaying instead of days in calendar

Home Forums Calendar Products Events Calendar PRO Months are displaying instead of days in calendar

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1220442
    Fadi
    Participant

    Suddenly the calendar is displaying months instead of days
    ex
    http://ecoledeconduiteandys.ca/en/registration-pierrefonds/

    #1220767
    George
    Participant

    I’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!
    George

    #1221068
    Fadi
    Participant

    Hi
    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 display

    #1221277
    George
    Participant

    Hey 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,
    George

    #1221462
    Fadi
    Participant

    When 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

    #1221650
    George
    Participant

    Thanks 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,
    George

    #1221661
    Fadi
    Participant

    https://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 french

    #1222521
    George
    Participant

    Hey 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,
    George

    #1222531
    Fadi
    Participant

    I 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

    #1223116
    George
    Participant

    Hey @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,
    George

    #1223259
    Fadi
    Participant

    Nothing changed.

    #1223366
    George
    Participant

    Hey 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,
    George

    #1224532
    Fadi
    Participant

    I 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
    Thanks

    #1225274
    George
    Participant

    Glad to hear it, Fadi!

    Cheers,
    George

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Months are displaying instead of days in calendar’ is closed to new replies.