Support

Home Forums Event Espresso Premium Tweaking your templates

Tweaking your templates

Posted: November 15, 2021 at 8:23 am

Viewing 1 reply thread


Viken

November 15, 2021 at 8:23 am

We have coding expertise and plan to tweak some of your templates (if they are possible, that is). When you make updates, do the updates override what we do?


Tony

  • Support Staff

November 15, 2021 at 12:01 pm

Hi there,

It depends on the specific templates you are referring to here and how you are editing them

Whenever you change code (doesn’t matter what code) within ANY plugin (or theme) then when you update that plugin/theme, you lose any modifications you made directly within itself. The reason that happens is when WordPress (Note – this isn’t an ‘Event Espresso thing’, it’s due to how updates work in WordPress) updates a theme or plugin, what it actually does is download the ‘latest’ .zip version, deletes the original and then extracts the latest version in its place. That means that any changes you made will be lost as ‘your’ version of the plugin was simply deleted and replaced with the latest version.

Now, WordPress offers many ways around that. For themes, its Child Themes.

For plugins, the recommendation is to use hooks to change whatever you need to although there are other ways and we also use some of those. For example, Event Espresso will load many of its .template. files from the root directory of your current theme (again note that if you doing something like this the current theme should be a custom theme or a child theme of another).

OR, if you are referring to things like messages, then we store those details within the database and only use ‘message templates’ (the .PHP files) to generate those templates before saving on initial activation or reset.

So, to answer your question there are many ways to ‘save’ your custom work but it depends on the specifics of what you are changing as to how you do that 🙂

Viewing 1 reply thread

The support post ‘Tweaking your templates’ 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