How to show hour on Month View

Home Forums Calendar Products Events Calendar PRO How to show hour on Month View

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #783239
    webenaut
    Participant

    Hi,
    I want to know if it’s possible to show an “event hour” before “event title”, in month calendar view.

    As you can see on my Events Calendar, what I’m doing now is to write directly the hour in the title.
    http://canvi.org/eventos/mes/

    This solution is not good, because it doesn’t help me to manage all the events in a “clean” way.
    Can you help me?
    Thanks

    #783352
    Josh
    Participant

    Hello webenaut,

    Thanks for reaching out to us!

    This can definitely be accomplished with a little bit of customization. First, you’ll need to follow our Themer’s Guide to copy the “views > month > single-event.php” to your theme to override the default display. You can then add the time for the event prior to the event title using the following snippet:

    <?php echo tribe_get_start_date( $post, false, get_option( 'time_format' ) ) . ' a ' . tribe_get_end_date( $post, false, get_option( 'time_format' ) ); ?>

    I’m sorry I wasn’t able to give you a direct response on the customization however I hope this was able to point you in the right direction.

    Thanks!

    #784557
    webenaut
    Participant

    It works! Thanks!
    However, can I put it in green and in bold (only the hours)?

    #785164
    Josh
    Participant

    Hello webenaut,

    Thanks for following up and happy to be able to help.

    You could wrap the whole addition in a <span> that you could then style with CSS within your child theme to the specific styles that you want there.

    Let me know if this helps.

    Thanks!

    #959006
    Josh
    Participant

    Hey,

    It’s been a while since we’ve heard from you on this thread.

    I’ll go ahead and close this thread for now. If you have any further questions, please don’t hesitate to open a new one.

    Thanks!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘How to show hour on Month View’ is closed to new replies.