Espen

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Time/date details missing Undsgn / Uncode Theme #1344745
    Espen
    Participant

    Thanks again Patricia,
    That did the trick!

    Regards,
    Espen

    in reply to: Time/date details missing Undsgn / Uncode Theme #1344384
    Espen
    Participant

    Hi Patricia,

    The date and time fields both in WP and TEC were in place. The customized template files I’ve made for TEC were not the issue.

    Your tip about the theme’s functions.php file headed me in the right direction. I discovered that I’d made some tiny adjustments there to not show the time stamp in the widget I had on the front page. Removing this piece of code made the time pop up at all instances of the listing of an event.

    This was the code causing it:

    //Remove time for all-day events in widget list
    add_filter('tribe_event_is_all_day', 'all_day_enforced_field');
    
    function all_day_enforced_field ($output ) {
    
    	if ( !is_admin() && tribe_is_event() ) {
    		$output = true;
    	}
    
    	return $output;
    }

    This is heading towards another question: Do you have a tip on how to remove timestamps (‘at 10:00’) in widgets?

Viewing 2 posts - 1 through 2 (of 2 total)