Removing date and time of some specific events

Home Forums Calendar Products Events Calendar PRO Removing date and time of some specific events

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #703930
    victorcourt
    Participant

    Hi there.
    I just bought the PRO version that I´m using with the Church Event theme.
    I can’t seem to locate an answer in the forum that fits my needs…so I´ll explain my situation:
    My client needs to remove the date and time of some specific events that don´t have already this information. He just needs to announce it with a “Coming soon”.

    I spoke earlier with you in the pre purchase forum and you told that it´s possible. But right now I don´t know how to make it.

    Would be great if you can help me.

    Thank you VERY MUCH!

    #704036
    Barry
    Member

    Hi!

    How do you want to identify the events that need this treatment? Would tagging them (simply using a straight forward tag like “coming soon” or “TBA”) be acceptable?

    #704126
    victorcourt
    Participant

    Hi Barry! The “comming soon” tag will work fine.
    But mainly I need to hide the date and time in these cases. Is it possible?
    THANK YOU!

    #704984
    Barry
    Member

    Hi!

    So something like this ought to work:

    add_filter( 'tribe_events_event_schedule_details', 'coming_soon_notice' );
    
    function coming_soon_notice( $details ) {
    	global $post;
    
    	$tag_name = 'coming soon';
    	$message  = 'Coming soon!';
    
    	return ( has_term( $tag_name, 'post_tag', $post->ID ) ) ? $message : $details;
    }

    Does that help?

    #705787
    victorcourt
    Participant

    Hi Barry!
    But where I should copy this code?
    Thank you.

    #706384
    Barry
    Member

    Sorry victorcourt, I do apologize for missing that detail: you could add that snippet to your theme’s functions.php file.

    #738266
    Barry
    Member

    Hi! It’s been a while so I’m going to go ahead and close this thread. If we can help with anything else, though, please don’t hesitate to create new threads as needed. Thanks!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Removing date and time of some specific events’ is closed to new replies.