Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
new template for list of events and their schortcode | Event Espresso - Staging Server

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

Viewing 4 reply threads


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

  • Support Staff

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

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

July 11, 2013 at 8:13 am

You’re welcome.

Viewing 4 reply threads

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 - Staging Server