Event Category List Customization
-
Hi,
I am trying to add custom html and css to one event category list- I don’t want it to override the styles of all the event category lists – I just want to customize one event category’s list. I tried to add a conditional statement in list.php – as seen below – but it didn’t work. What do you suggest?if ( ! defined( ‘ABSPATH’ ) ) {
die( ‘-1’ );
}do_action( ‘tribe_events_before_template’ );
?><!– Tribe Bar –>
<?php tribe_get_template_part( ‘modules/bar’ ); ?><!– Main Events Content –>
if(tribe_meta_event_category_name() == ‘Professional Learning Conference’){
<?php tribe_get_template_part( ‘list/prof-learning-conf-content’ ); ?>
} else {
<?php tribe_get_template_part( ‘list/content’ ); ?>
}
<div class=”tribe-clear”></div><?php
do_action( ‘tribe_events_after_template’ );
- The topic ‘Event Category List Customization’ is closed to new replies.