• Resolved Argentum

    (@argentum)


    Hi! I really like your plugin. Works like a charm. I just want to be able to change the color of the week numbers that I have enabled, so there is a difference between events and week numbers. I look in the calendar code in the page with dev console and the week numbers have exactly the same html structure like a regular event, so I can’t reach it with custom css.

    <div class=”fc-content”>
    <span class=”fc-title”>

    Hm, would it be possible to format the week number? It prints like “Week 24 of 2020” and I would like to show just the number (it clutters the calendar as it is).

    All the best
    Magnus

    • This topic was modified 4 years, 9 months ago by Argentum.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author michielve

    (@michielve)

    When I enable the weeknumbers with weekNumbers: true, I can see that the weeknumbers have a specific class fc-week-number. I don’t see “Week 24 of 2020” either.

    Maybe you can share an example?

    • This reply was modified 4 years, 9 months ago by michielve.
    Thread Starter Argentum

    (@argentum)

    Got it! Added it in the code like you suggested. Now it shows like a narrow frame to the left just as I wanted.

    {
    “eventColor”: “#268eb8”,
    “eventTextColor”: “white”,
    “weekNumbers”: “true”,
    “header”: {
    “left”: “title”,
    “center”: “”,
    “right”: “today prev,next”
    }
    }

    I did it wrong, enabling the week numbers in the Google Calendar setting and then in your widget there was a checkbox with “week number [ ]” that I used. That created events from the week numbers.

    Thanks for the help!
    All the best
    Magnus

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘style week number’ is closed to new replies.