1: Frontend
2: Card Template
2.1: Remove Thumbnail
Copy remove_action( 'el_loop_event_thumbnail', 'el_loop_event_thumbnail' );
2.2: Remove Author image
Copy remove_action( 'el_loop_event_author', 'el_loop_event_author' );
2.3: Remove Category
Copy 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
Copy 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.
Copy add_filter( 'el_title_count_two', function(){ return 120; } );
add_filter( 'el_title_count_three', function(){ return 120; } );
2.5: Remove Price
Copy remove_action( 'el_loop_event_price', 'el_loop_event_price' );
2.6: Remove Date
Copy 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' );
Some Hooks change date:
Copy
// Display Date
add_filter( 'el_event_date_format', function(){ return '[weekday], [date], '; } );
// Change weekday format
add_filter( 'el_weekday_format', function(){ return 'l'; } );
// Change date format
add_filter( 'el_date_format', function(){ return 'Y M d'; } );
// Change time format
add_filter( 'el_time_format', function(){ return 'h:a'; } );
// Display Hour
add_filter( 'el_start_end_time_format', function(){ return '[start_time] - [end_time]'; } );
// Define separator between start date and end date
add_filter( 'el_event_date_separator', function(){ return '-'; } );
2.7: Remove Location
Copy remove_action( 'el_loop_event_location', 'el_loop_event_location' );
2.8: Remove Rating
Copy remove_action( 'el_loop_event_ratting', 'el_loop_event_ratting' );
Copy remove_action( 'el_loop_event_button', 'el_loop_event_button' );
2.10: Remove favourite
Copy remove_action( 'el_loop_event_favourite', 'el_loop_event_favourite' );
2.11: Remove status
Copy remove_action( 'el_loop_event_status', 'el_loop_event_status' );
2.12: Remove Share
Copy remove_action( 'el_loop_event_share', 'el_loop_event_share' );
Copy 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
Copy 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
Copy 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:
Copy It Events >> Settings >> Event >> Archvie Event Setting >> Type: Type 1,
you need to customzie file:
plugins/eventlist/templates/content-event-type1.php