Time display off on recurring events

Home Forums Calendar Products Events Calendar PRO Time display off on recurring events

  • This topic has 0 replies, 2 voices, and was last updated 6 years ago by Center for Inquiry.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1484954
    Center for Inquiry
    Participant

    Hi there,

    I’ve noticed that our regular single events look great: https://cfimichigan.org/event/film-screening-reasons-to-believe-followed-by-qa-with-ben-fama-grand-rapids/

    But events that are recurring don’t display the time on the same line: https://cfimichigan.org/event/skeptics-in-the-pub-flint-98/2018-03-23/

    I’ve adjusted the templates quite a lot but I am using the default: $time_formatted = apply_filters( ‘tribe_events_single_event_time_formatted’, $time_formatted, $event_id ); to display all times on events. I’m not sure why the recurring event times would break out of the paragraph like that and I’m not sure how to fix this.

    Thanks for your help!

    #1486896
    Andras
    Keymaster

    Hi,

    Before you adjusted the templates did they show up right?

    Try disabling the customizations / custom templates and check.

    It looks like that the <div> containing the time somehow got out form the <p>.

    Here’s a screenshot of the code: https://cloudup.com/cbeEyf5P4Yb

    Andras

    #1488637
    Center for Inquiry
    Participant

    I think the main issue is that you can’t have a div inside a p tag. I was still using the default “$time_formatted = apply_filters( ‘tribe_events_single_event_time_formatted’, $time_formatted, $event_id );” code from the stock template and the filter adds that div with the “tribe-recurring-event-time” class automatically to the time display for recurring events. My only adjustments were to get the time to display inline with the “Time:” heading instead of underneath.

    For now, I went back to displaying the time below the “Time:” header and got rid of the paragraph I had wrapped around it. That way single and recurring events are at least consistent.

    #1488948
    Andras
    Keymaster

    Hi again,

    I think the main issue is that you can’t have a div inside a p tag.

    Yeah, that’s true. You can use <span> though and apply formatting to that. Would that do the trick?

    A.

    #1509433
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Time display off on recurring events’ is closed to new replies.