Change color of time

Home Forums Calendar Products Events Calendar PRO Change color of time

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #952931
    cesua
    Participant

    Hi,

    I used the following instructions to add a time to my calendar view and it worked great!
    https://theeventscalendar.com/knowledgebase/add-start-time-to-event-title/?source=tri.be

    I was now wondering if there was a way to change the color of the time that is now displayed.

    thanks!

    #953217
    George
    Participant

    Hey @cesua,

    You should be able to customize the coloring if you change the markup a little bit. So, for example, instead of something like this:

    
    echo tribe_get_start_time( $post->ID ) . ' ';
    

    You could try something like this:

    
    printf( '<span class="cesua-custom-start-date">%s</span>', tribe_get_start_time( $post->ID ) );
    

    Then, you can add some custom CSS like the following to the bottom of your theme’s style.css file:

    
    span.cesua-custom-start-date {
        color: red !important;
    }
    

    We don’t officially offer support for customizations like this, so definitely take some time to play around with things – and keep backups of any changes you make that you like 🙂

    Cheers!
    George

    #983961
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Change color of time’ is closed to new replies.