Support

Home Forums Event Espresso Premium Event Espresso 4 – Custom Event Template Not Taking Effect

Event Espresso 4 – Custom Event Template Not Taking Effect

Posted: December 6, 2019 at 8:03 pm


Susan Perry

December 6, 2019 at 8:03 pm

Hi there,

Our stoney creek location is showing a different button text as “Register” where as the rest of our locations are using “Info/Register” due to overriding the event view template. The odd thing is the shortcode has the same parameter for template, yet it isn’t taking effect.

Any ideas?


Susan Perry

December 6, 2019 at 8:03 pm

https://safetycoursesforkids.com/children-safety-courses/home-alone-safety-kids/


Tony

  • Support Staff

December 9, 2019 at 4:29 am

Hi Susan,

Looking over the table, it does appear to be loading a custom template, the DateTime list output is different for example, but in the Oakville table above it’s using the default template output (or at least close to the default than Stoney Creek).

Can you post the full shortcode in use for the both Oakville and Stoney Creek tables, please?


Susan Perry

December 9, 2019 at 6:06 pm

Hi Tony,

Oakville

[ESPRESSO_EVENTS_TABLE_TEMPLATE template_file=”espresso-events-table-template-revised-csp.template.php” category_slug=”hs-oakville” order_by=”start_date” order=”DESC” category_filter=”false” table_search=”false”]

Stoney Creek

[ESPRESSO_EVENTS_TABLE_TEMPLATE template_file=”espresso-events-table-template-revised-csp.template.php”” category_slug=”hs-stoney_creek” order_by=”start_date” order=”DESC” category_filter=”false” table_search=”false”]


Tony

  • Support Staff

December 10, 2019 at 1:46 am

In the above there is an additional double quote (") around the template_file value for Stoney Creek (just after .php), if that is in use on the page, it’ll prevent that parameter from working.

So, if you remove that does it work?

We recommend you don’t use quotes around shortcode parameters, pretty much the only time they are needed is when you have a space in the value for the parameter and having them can often cause issues.

So all of the above could just be:

[ESPRESSO_EVENTS_TABLE_TEMPLATE template_file=espresso-events-table-template-revised-csp.template.php category_slug=hs-stoney_creek order_by=start_date order=DESC category_filter=false table_search=false]

The support post ‘Event Espresso 4 – Custom Event Template Not Taking Effect’ 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