Support

Home Forums Event Espresso Premium Hiding certain fields from the events list

Hiding certain fields from the events list

Posted: July 9, 2013 at 11:43 pm

Viewing 1 reply thread


Jennifer Benn

July 9, 2013 at 11:43 pm

Hi

I have a very simple requirement. I would like to display the events list / event categories, showing only the event title, date and time.

Please let me know what I should do?

Regards
Jenny


Dean

July 10, 2013 at 12:23 am

Hi,

In the Template Setings, make sure “Display short descriptions in the event listings?” is set to No. You may also want to set “Display featured images in the event list and registration pages?” to No.

Then you will need to add some CSS to your themes style.css file or a plugin such as My Custom CSS:

.event_price { display:none;}
.spaces-available {display:none; }

That will hide the price and available spaces on the event list page.

Adding in a time is a little more complex but still releatively easy.

Copy the event-espresso/templates/event_list.php and event-espresso/templates/event_list_display.php over to wp-content/uploads/espresso/templates.

In that folder edit the event_list_display.php and find the date section (approx line 75).

After that add this code to show the event start time:

<p id="event_time-<?php echo $event_id ?>"><span class="section-title"><?php _e('Time:', 'event_espresso'); ?></span>  <?php echo $event->start_time; ?> 
Viewing 1 reply thread

The support post ‘Hiding certain fields from the events list’ 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