Support

Home Forums Event Espresso Premium new template for list of events and their schortcode

new template for list of events and their schortcode

Posted: July 10, 2013 at 6:48 am


sergio Pannella

July 10, 2013 at 6:48 am

I created a new template for list of events and their schortcode: “event_list_display_nl.php” and “EVENT_LIST_NL” in order to change the CSS. What still needs to be done to make it work?


Dean

July 10, 2013 at 7:11 am

Hi,

Unless you are wanting the default event_list shortcode to run alongside your new one, then I would suggest instead of trying to create a whole new shortcode, copy the event list.php and event_list_display.php to wp-content/uploads/espresso/templates and just edit those there.

If you absolutely need this as a new shortcode, then you will need to start looking at the required functions, for example event_espresso_get_event_details (espresso.php, event_list.php), and find out the relations to the template.


Josh

  • Support Staff

July 10, 2013 at 7:47 am

Hi Sergio,

A simpler approach might be to use the CSS parameter in the [EVENT_LIST] template. So for your NL event page you can use a shortcode like this:

[EVENT_LIST css_class=nl]

which will add the nl class to the div wrapper around each event.


sergio Pannella

July 11, 2013 at 7:43 am

thanks you,with [EVENT_LIST css_class=nl], it worked


Josh

  • Support Staff

July 11, 2013 at 8:13 am

You’re welcome.

The support post ‘new template for list of events and their schortcode’ 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