Event Archive Template

Add hook code to functions.php file in child theme

1: Frontend

2: Card Template

2.1: Remove Thumbnail

remove_action( 'el_loop_event_thumbnail', 'el_loop_event_thumbnail' );

2.2: Remove Author image

remove_action( 'el_loop_event_author', 'el_loop_event_author' );

2.3: Remove Category

remove_action( 'el_loop_event_cat', 'el_loop_event_cat' );
remove_action( 'el_loop_event_cat_3', 'el_loop_event_cat_3' ); // available in version 1.2.1

2.4: Remove Title

remove_action( 'el_loop_event_title', 'el_loop_event_title' );

2.4.1 Display Title more words

You can add the code bellow to functions.php in child theme. Change value 120 to your number words.

add_filter( 'el_title_count_two', function(){ return 120; } );
add_filter( 'el_title_count_three', function(){ return 120; } );

2.5: Remove Price

remove_action( 'el_loop_event_price', 'el_loop_event_price' );

2.6: Remove Date

remove_action( 'el_loop_event_time', 'el_loop_event_time' );
remove_action( 'el_loop_event_date', 'el_loop_event_date' );
remove_action( 'el_loop_event_date_4', 'el_loop_event_date_4' );

2.7: Remove Location

remove_action( 'el_loop_event_location', 'el_loop_event_location' );

2.8: Remove Rating

remove_action( 'el_loop_event_ratting', 'el_loop_event_ratting' );

2.9: Remove Button

remove_action( 'el_loop_event_button', 'el_loop_event_button' );

2.10: Remove favourite

remove_action( 'el_loop_event_favourite', 'el_loop_event_favourite' );

2.11: Remove status

remove_action( 'el_loop_event_status', 'el_loop_event_status' );

2.12: Remove Share

remove_action( 'el_loop_event_share', 'el_loop_event_share' );

3: Search form

3.1: Add/Update/Remove filed in search form

remove_action( 'el_archive_description', 'el_event_archive_description', 10 );
add_action( 'el_archive_description', 'el_event_archive_description_customize', 10 );
function el_event_archive_description_customize(){
	echo do_shortcode( '[el_search_form type="type3" pos1="name_event" pos2="cat" pos3="loc_state" pos4="loc_city" pos5="all_time" pos6="start_event" pos7="end_event" pos8="venue" taxonomy_customize="" content="" min_slider="0" max_slider="300" start_slider="0" end_slider="80" class="" /]' );
}

type: type1, type2, type3

pos1, pos2, pos3 ... pos8 you can insert any value: name_event, loc_input, cat, loc_state, loc_city, all_time, start_event, end_event, venue

taxonomy_customize: insert slug of custom taxnomy like tax1, tax2

content: Insert description

min_slider: Insert number

max_slider: Insert number

start_slider: Insert number

end_slider: Insert number

3.2: Remove Search form

remove_action( 'el_archive_description', 'el_event_archive_description', 10 );Customize template

4: Customize Template

You can customzie template of Archive page by copy file

plugins/eventlist/templates/archive-event.php
to
themes/meup-child/eventlist/archive-event.php

For Detail: You can edit the file corresponding to the card template selected in the settings.

Example:

It Events >> Settings >> Event >> Archvie Event Setting >> Type: Type 1,
you need to customzie file: 
plugins/eventlist/templates/content-event-type1.php

Last updated