Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1298257

    Hi guys,

    I’d like to modify the output of the Upcoming Events element. Instead of showing the metadata beneath the events title, it should be before the title.
    Not only that but also only show the date and not the time. I read this thread but I don’t know if this is the right way to achieve this.

    Please see my idea here.

    Thanks in advance!

    Best regards,

    Steven

    • This topic was modified 3 years, 6 months ago by steviger.
    #1298513

    Hey steviger,

    Thank you for the inquiry.

    You can use this css code to move the meta info beside the title.

    #top .av-upcoming-event-title {
        width: 80%;
        float: right;
    }
    
    #top .av-upcoming-event-meta {
        float: left;
        width: 20%;
    }

    Best regards,
    Ismael

    #1298520

    Hi Ismael,

    Thanks for your feedback. It works like a charm! Is it also possible to only display the date and not the time?

    Best regards,

    Steven

    #1298614

    Hi,

    Please provide a link to the site/page in question so we can look into that further.

    Best regards,
    Jordan Shannon

    #1298629

    Hi,

    Please see PC.

    Best regards,

    Steven

    #1298888

    Hi,

    That should be possible. Please add these filters in the functions.php file to disable the time in the event list.

    // disables the time for event list
    function ava_remove_time_list_view( $settings ) {	
    	$settings["time"] = false;
    	return $settings;
    }
    add_filter( "tribe_events_event_schedule_details_formatting", "ava_remove_time_list_view" );
    
    function ava_remove_end_date ( $settings ) {
      $settings["show_end_time"] = false;
      return $settings;
    }
    add_filter( 'tribe_events_event_schedule_details_formatting', 'ava_remove_end_date' );
    

    Best regards,
    Ismael

    #1298937

    Hi Ismael,

    Thanks a lot!

    Best regards,

    Steven

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Modify display Avia Upcoming Events [SOLVED]’ is closed to new replies.