Support

Home Forums Translations How do I remove the date field from my event listing page.

How do I remove the date field from my event listing page.

Posted: March 10, 2013 at 5:08 pm

Viewing 1 reply thread


kelly tallariti

March 10, 2013 at 5:08 pm

I was able to remove the price from the event list with this code

/* hide the event price in the event list */ p.event_price {display:none;}

However I’m having trouble removing the Date in the events list. Does anyone have the code to do this? I’ve tried all kinds of variations similar to the above code replacing price with date. No luck though


Dean

March 11, 2013 at 2:25 am

Hi Kelly,

The date is slightly problematic in that it uses a unique ID rather than a catch all class, so using CSS you would have to target them individually which wont work in the long run. I will raise a ticket to add something in for that in future versions.

In the meantime there are two ways to get around it.

1) You mention you don’t want the prices either so you could target the event-meta class and hide that

.event-meta { display:none; }

2) You can edit the event_list_display.php template file and remove the date section. Around line 75 you will see

<p id="event_date-<?php echo $event_id ?>"><span class="section-title"><?php _e('Date:', 'event_espresso'); ?></span>  <?php echo event_date_display($start_date, get_option('date_format')) ?> 
<?php //Add to calendar button
echo apply_filters('filter_hook_espresso_display_ical', $all_meta);?>
</p>

simply remove or comment this out. If you change it this way, I would copy the event_list_display.php and the event_list.php files over to the uploads/espresso/templates folder and edit the file there.

Viewing 1 reply thread

The support post ‘How do I remove the date field from my event listing page.’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso