Full Calendar – change time title places

WordPress Event Management, Calendars & Registration Forums General Question Full Calendar – change time title places

This topic contains 8 replies, has 2 voices, and was last updated by  Rachel Druskin 9 years, 1 month ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #21128

    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
    #21136

    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
    #21142

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

    Rachel Druskin
    #21218

    here’s an example to what i see:
    example

    Rachel Druskin
    #21251

    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
    #21254

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

    Rachel Druskin
    #21267

    Hi Rachel,

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

    Stephen Harris
    #21268

    And what language is the calendar/events in?

    Stephen Harris
    #21311

    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
Viewing 9 posts - 1 through 9 (of 9 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.