Support

Home Forums Event Espresso Premium Use Customized Template to Display Event List on Static Front Page

Use Customized Template to Display Event List on Static Front Page

Posted: May 13, 2017 at 11:07 am


marco-ka

May 13, 2017 at 11:07 am

Hello! πŸ™‚

I would like to display a list of upcoming events on my front page that uses my custom markup.

I already customized the ‘archive_espresso_events.php’ and this works perfectly for [mysite].org/events. Is there a way to display events on the front page using this template?

I know that I can use [ESPRESSO_EVENTS] to display events on my front page. But it seems like this uses the markup defined in ‘EEW_Upcoming_Events.widget.php’.

Thanks for your help!! πŸ™‚


Tony

  • Support Staff

May 15, 2017 at 5:23 am

Hi there,

EEW_Upcoming_Events.widget.php should only be used by the Event Espresso Upcoming Events Widget, not the [ESPRESSO_EVENTS] shortcode.

archive_espresso_events.php is a full template used for the archive output, did you break out your markup into smaller template files that can be called from other templates or is the above file outputting all of the event details?


marco-ka

May 17, 2017 at 5:35 am

Hi Tony!

You are of course right!

My mistake was that I didn’t really use the [ESPRESSO_EVENTS] shortcode as I thought I had done. Instead, I had placed an upcoming events widget on the front page. I don’t really know why I was so convinced that I had used the shortcode.

When using [ESPRESSO_EVENTS] everything works perfectly!

Thanks for your quick response and have a great day! πŸ™‚


Tony

  • Support Staff

May 17, 2017 at 7:30 am

You’re most welcome and the same to you πŸ™‚

The support post ‘Use Customized Template to Display Event List on Static Front 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