• Resolved Tveden

    (@tveden)


    I have altered the template content (including changing “Find out more” to Danish). This information is stored in “template-events-calendar // templates // list // list.php”. However, when I update The Events Calendar Shortcode & Block my code in list.php is replaced with the latest version.

    Is there a hack to this plugin moving the code to my child theme?

    Regards Svend Nyborg

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Brian Hogg

    (@brianhogg)

    Hi @tveden !

    Our plugin is the-events-calendar-shortcode rather than template-events-calendar, so you’d need to reach out to the author of that plugin to see if there’s a way to modify their templates without losing the changes on an update.

    In case it’s helpful, the pro version of our plugin includes several designs like a list view:

    https://demo.eventcalendarnewsletter.com/the-events-calendar-shortcode/default-design/

    and it’s pretty straightforward to modify the templates by making a tecshortcode folder within your theme:

    https://eventcalendarnewsletter.com/events-calendar-shortcode-pro-options/#customize-default

    Cheers!

    Thread Starter Tveden

    (@tveden)

    Thank you for a quick reply.

    With regards to the template-events-calendar, which I know is not your plug in. Nevertheless, the code in the template-events-calendar folder was altered when I updated your plugin.

    I could not figure it out, until I restored my site and updated one plugin at a time before checking, and to my surprise your plugin made the change in the template-events-calendar folder.

    Unless their plugin is able to respond to other plugin updates, I cannot figure out how this could happen.

    Please help me out

    Regards

    Svend Nyborg

    Plugin Author Brian Hogg

    (@brianhogg)

    No worries for the quick reply!

    We definitely don’t have code that will modify other plugins, so there might be something with the hosting of the website that is possibly causing other plugins to auto-update. WordPress auto has an auto-update feature which may be turned on.

    Regardless, modifying other plugins directly is fragile since it can be overwritten, so hopefully there’s a way to do what you’d like with either a feature plugin or adding a folder to a child theme (since adding a folder to a theme could also be overwritten when the theme has an update).

    Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Protecting modified template changes with child theme’ is closed to new replies.