• Resolved manuosiris

    (@manuosiris)


    Hello is it possible to change the name of the days for example that Monday is M ?? Thank for all

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author michielve

    (@michielve)

    Hi,

    I’m not sure you can set day names to one character like “M”, but you can change the format of day names for example to “Mo” for “Monday”, but there are many other possibilities.

    With columnHeaderFormat you can set the day name in the monthview and with the combination listDayAltFormat and listDayFormat you can set the day names in the weeklist:

    {
      "columnHeaderFormat": "dd",
      "listDayAltFormat": false,
      "listDayFormat": "dd"
    }

    If you use the shortcode:

    [pgc column_header_format="dd" list_day_alt_format="false" list_day_format="dd"]

    See for all formats you can use: https://momentjs.com/docs/#/displaying/format/

    Thread Starter manuosiris

    (@manuosiris)

    Thanks for answering so quickly, a doubt I use elementor with the widget and I have this:
    {
    “header”: {
    “left”: “title”,
    “center”: “”,
    “right”: “today prev, next”
    }
    }

    If I would like to capitalize the first letter of the month, how should I do it? : D

    Plugin Author michielve

    (@michielve)

    With the widget you can the same syntax as with the Gutenberg block, so in your case:

    {
      "header": {
        "left": "title",
        "center": "",
        "right": "today prev, next"
      },
      "columnHeaderFormat": "dd",
      "listDayAltFormat": false,
      "listDayFormat": "dd"
    }

    You have to replace the “dd” with some of the formats you see at https://momentjs.com/docs/#/displaying/format/ to see which one works.

    Thread Starter manuosiris

    (@manuosiris)

    Thank you so much for everything it worked and one question, can I change the order by prev today next ??

    Plugin Author michielve

    (@michielve)

    Yes just change the order in the header as in the following example:

    {
      "header": {
        "left": "title",
        "center": "",
        "right": "prev today next"
      }
    }
    Thread Starter manuosiris

    (@manuosiris)

    the best ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Translate or change’ is closed to new replies.