-
AuthorPosts
-
December 15, 2018 at 2:53 am #1045512
Hello. About a month ago I posted a request for help overriding a modification that the Enfold Church Demo makes to The Events Calendar plug-in. After some discussion, Ismael helpfully provided a code sample that we both believed would address my issue, and I suggested that the thread be closed. Details are here.
However, when I later attempted to implement the code, I found that it did not work (despite it looking completely correct to me). Unable to resolve it, I intended to reopen the topic here, but got busy and well, you know.
However, the recent update to Enfold 4.5.1 brought this back to my attention since, of course, the update broke the modification we were forced to make in Enfold because we could not find a way to implement it in Enfold Child. Unfortunately, the breakage is not just cosmetic; important content goes missing and seriously impacts site functionality. We can easily restore the change if we know about it (it’s a one line function call), but we want to avoid the potential downtime if we don’t catch it in time. It would be so much better if we could encapsulate this in Enfold Child.
So, is any way we can revisit this and try to figure out why Ismael’s code might not be working? I can provide private access to the site, if needed.
Thanks for listening.
December 15, 2018 at 10:59 am #1045613Hey Gary!
Thank you for using Enfold.
I think it’s not working because there’s a minor typo in the original callback name. Please change this line:
if(is_child_theme()) remove_action('tribe_events_template', 'avia_events_template_paths', 10, 2);
to:
if(is_child_theme()) remove_action('tribe_events_template', 'avia_events_tempalte_paths', 10, 2);
Make sure that template files are inside the child theme’s “tribe-events/views” folder.
Regards,
IsmaelDecember 15, 2018 at 7:48 pm #1045703Haha, typos. :-)
Thank you Ismael, that did the trick! Really appreciate the help!
Gary
December 16, 2018 at 3:08 pm #1045904Hi Gary,
Glad we could help :)
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.