Support

Home Forums Event Espresso Premium Custom Files Not Working

Custom Files Not Working

Posted: August 15, 2013 at 8:17 am


Lucy Pierpont

August 15, 2013 at 8:17 am

Hello –

I have several custom files in the uploads/espresso/templates folder, but none of them seem to be taking precedence over the default files like they should.

Any ideas why this might be?

Thanks!

Lucy


Josh

  • Support Staff

August 15, 2013 at 1:38 pm

Hi Lucy,

What it might be is they are the templates that work in pairs. For example, the event_list.php template file does the include for event_list_display.php. If event_list_display.php is the only one of the pair it will not load from /wp-content/uploads/espresso/templates.


Lucy Pierpont

August 16, 2013 at 11:45 am

Hi, Josh –

Unfortunately, that does not seem to be the problem, at least as far as I can tell. Here’s a list of the files that are currently in the custom files templates folder:

Can you see anything that I’m missing?

Thanks –
Lucy


Lucy Pierpont

August 16, 2013 at 11:46 am

It looks like the link to the image didn’t go through: http://www.kentmemoriallibrary.org/new/wp-content/uploads/2013/08/custom-files.png


Josh

  • Support Staff

August 16, 2013 at 2:23 pm

This looks like at least a few of these are in the incorrect location.

event_list.php and event_list_display.php look good, however gateway_display.php should be in /wp-content/uploads/espresso/gateways

I don’t know what includes-functions-main.php is, but that doesn’t sound like a template. If you want to include custom functions those should all go into /wp-content/uploads/espresso/custom_functions.php. main.php and shortcodes.php will not override what’s in core. If you need to override one or more of the functions contained in main.php or shortcodes.php, you copy the entire function into custom_functions.php. More information on the custom functions can be found here:

https://eventespresso.com/wiki/custom-files-addon/

An example of how pluggable functions work is in the WordPress codex:

http://codex.wordpress.org/Pluggable_Functions

registration_page_display.php does need its counterpart registration_page.php in /wp-content/uploads/espresso/templates in order to load from there.

themeroller-base.css should be in the /wp-content/uploads/espresso/templates/css/themeroller folder.


Lucy Pierpont

August 16, 2013 at 2:37 pm

Thanks, Josh. I’ll take another look.


Dean

August 19, 2013 at 1:42 am

Hi Lucy, Please let us know the outcome. Thanks.


Lucy Pierpont

August 22, 2013 at 9:06 am

Hi, Dean –

Moving/renaming the files seems to have done the trick.

Thanks!

Lucy

The support post ‘Custom Files Not Working’ 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