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/
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
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.
Thank you so much for everything it worked and one question, can I change the order by prev today next ??
Yes just change the order in the header as in the following example:
{
"header": {
"left": "title",
"center": "",
"right": "prev today next"
}
}