hi,
i’m using full calendar with rtl support. but for each event i get the time after the title.
i’d like to display this in reverse – the time first and than the title.
i tried to search for “fc-time” or “fc-title” with no luck. 🙁
<div class="fc-content">title goes here 16:00full time display</div>
would appreciate your help!
thanks!

Rachel Druskin
Hi Rachel,
This behaviour is hard-coded in the fullcalendar.js library which the plug-in uses. It has been reported here last November: https://github.com/fullcalendar/fullcalendar/issues/2940 – that issue seems to suggest that if you have an English title with RTL enabled it renders incorrectly, but renders correctly with RTL language – and I’ve been able to reproduce that.

Stephen Harris
i don’t use english title with rtl, but i still see the title before the time.

Rachel Druskin
here’s an example to what i see:
example

Rachel Druskin
Thanks Rachel,
What language is your site in? (That is, the value of the WP_LANG
constant – this determines, for example, the language of your wp-admin dashboard). I think I had thought the calendar itself was in a RTL language, but the event title was in English. But if the calendar is in English and the event title itself is an RTL locale that would explain your issue.
In short, the problem occurs when the calendar language (determined by WP_LANG
) is RTL and your event language is not (or vice versa).

Stephen Harris
hi Stephen,
wp language is rtl and events language are in rtl.

Rachel Druskin
Hi Rachel,
Ok, that’s unexpected – could you post a link to the calendar?

Stephen Harris
And what language is the calendar/events in?

Stephen Harris
hi Stephen, this is the calendar i’ve added the following css to display it better:
.fc-content {display:flex;flex-flow:column-reverse nowrap;}
so, if you were to remove them, you will see that the title appear before the time (and i would like to display the title after the time…) btw, WP language is rtl
thanks!
-
This reply was modified 9 years, 1 month ago by
Rachel Druskin.

Rachel Druskin