View Categories

How to Override Archive Page

Here’s a visual hook guide for the Eventin Event Archive Page. This is the part in which you can find eventin Event Archive hooks quickly and easily by seeing their actual locations (and you can copy/paste).

Now that you know the Event Archive page hooks, you can override the Eventin Event Archive Page via your child theme’s functions. You can remove default elements, you can add your custom elements by picking the correct positioned “hook” and triggering your function, and you can even “move” existing elements.

Event Archive Style #

etn_before_event_archive_container

etn_before_event_archive_item

etn_before_event_archive_content
etn_before_event_archive_title
etn_after_event_archive_title
etn_after_event_archive_content

etn_after_event_archive_item

etn_after_event_archive_container

Event Archive Default Hooks #

This is the list of Event Archive hooks you can override/remove by simply changing “add_action” to “remove_action” and “add_filter” in your functions.php. Eventin uses its own hooks to assemble the Event Archive page together. Because it’s done this way, you can therefore use “remove_action” to remove one of these elements.

/**
 * @snippet       List of Default Archive Hooks @ Eventin Single Event
 * @author        Themewinter
 * @updated       Eventin WP 2.4.0
 **/


// Before content
add_action( 'etn_before_event_archive_container' );
add_action( 'etn_before_event_archive_item' );
add_action( 'etn_before_event_archive_content', );
add_action( 'etn_before_event_archive_title', );
add_action( 'etn_before_event_archive_thumbnail' );
add_action( 'etn_before_event_archive_footer_content' );


// After content
add_action( 'etn_after_event_archive_footer_content' );
add_action( 'etn_after_event_archive_thumbnail' );
add_action( 'etn_after_event_archive_title',);
add_action( 'etn_after_event_archive_content', );
add_action( 'etn_after_event_archive_item' );
add_action( 'etn_after_event_archive_container' ); 

// All Filters
add_filters('etn_event_archive_content', );
add_filters( 'etn_event_archive_column', '4' );

Speaker Archive Style #

etn_before_speaker_archive_container

etn_before_speaker_archive_item

etn_before_speaker_archive_content

etn_before_speaker_title

etn_after_speaker_title

etn_after_speaker_archive_content

etn_after_speaker_archive_item

etn_after_speaker_archive_container

Speaker Archive Style Hooks #

This is the list of Eventin speaker archive hooks you can override/remove by simply changing “add_action” to “remove_action” and ”add_filter” in your functions.php. Eventin uses its own hooks to assemble the speaker archive page together. Because it’s done this way, you can therefore use “remove_action” to remove one of these elements.

/**
 * @snippet       List of speaker archive style hooks @ Eventin Single page
 * @author        Themewinter
 * @updated       Eventin WP 2.4.0
 **/

// Before content
add_action( 'etn_before_speaker_archive_container' );
add_action( 'etn_before_speaker_archive_item' );
add_action( 'etn_before_speaker_archive_content',);
add_action( "etn_before_speaker_title" );
add_action( "etn_before_speaker_archive_thumbnail" );

// After content
add_action( "etn_after_speaker_archive_thumbnail" ); 
add_action( "etn_after_speaker_title" );
add_action( 'etn_after_speaker_archive_content',);
add_action( 'etn_after_speaker_archive_item' );
add_action( 'etn_after_speaker_archive_container' );

// All Filters
add_filters( 'etn_speaker_archive_column', '4' ) );


Archive Page Override by Template #

WPEventin Template Override Documentation