
-
AuthorPosts
-
August 12, 2017 at 12:34 am #837685
It appears that Enfold uses a non-standard method to override the template files used by The Events Calendar plugin.
The standard method for doing this is to create a sub-directory in the theme directory called “tribe-events”. Any The Events Calendar template files placed in this sub-directory and it’s sub-directories then override corresponding template files in the /plugins/the-events-calendar/src/views directory. However, Enfold seems to use the directory /themes/enfold/config-events-calendar/views for template files.
This causes problems when using a child theme of Enfold as the child theme can’t override The Events Calendar template files in the usual manner. Is there a solution for this (other than adhering to The Events Calendar standard way of overriding it’s template files)?
Documentation on overriding The Events Calendar template files can be found here: https://theeventscalendar.com/knowledgebase/themers-guide/
Thanks!
August 14, 2017 at 11:37 am #838563Hey cardinalacres,
You can copy the template to a location specified in the docs and see if that works for you. Let us know of any issues then.
Best regards,
VictoriaAugust 14, 2017 at 2:11 pm #838648In my testing of a child theme there doesn’t appear to be anyway to override The Events Calendar templates. I have tried the following:
- using the standard The Events Calendar template locations (e.g., /themes/child-theme/tribe-events/…)
- using the Enfold template locations (e.g., /themes/child-theme/config-events-calendar)
Neither of these work.
I have successfully overridden The Events Calendar templates via a child theme with another theme as the parent, so I don’t believe this is an issue with The Events Calendar.
August 15, 2017 at 2:16 pm #839290Hi cardinalacres,
Can you explain what exactly the issues are and can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
VictoriaAugust 15, 2017 at 2:27 pm #839300I don’t believe there is any need to provide admin access. To reproduce this issue, do the following:
- install The Events Calendar, the Enfold theme and a child theme
- attempt to override any of The Events Calendar templates in the /wp-content/themes/enfold/config-events-calendar/views directory by doing either of the following:
- placing the file in the same directory in the child theme (e.g., /wp-content/themes/child-theme/confg-events-calendar/views; this is the standard WordPress way to override a parent theme file in a child theme))
- placing the file in the /wp-content/themes/child-theme/tribe-events/ (this is the standard The Events Calendar way to override a The Events Calendar template file in a theme)
Neither of these will work.
As I said, I have another WordPress installation using The Events Calendar and a child theme where using the second method (placing the file in the /wp-content/themes/child-theme/tribe-events/) functions perfectly fine.
For your reference, The Events Calendar provides a guide to their method of overriding template files here: https://theeventscalendar.com/knowledgebase/themers-guide/
August 18, 2017 at 7:07 am #840760Hi,
Please use the plugin’s “tribe_events_template” hook. Example:
// https://kriesi.at/support/topic/enfold-and-tribe-events-calendar/#post-691070
// https://kriesi.at/support/topic/events-calendar-with-sidebar/#post-787130Best regards,
IsmaelAugust 18, 2017 at 2:54 pm #840891Perfect! Thanks for the response…
August 19, 2017 at 1:16 am #841099After more testing, it appears that the code you referenced prevents the display of the ticket panel if it’s position is set to “Below the Event Description” in The Events Calendar settings. Each of the other ticket panel positions seem to function fine. Any idea why this might be occurring?
Thanks!
August 21, 2017 at 6:42 am #841859Hi,
Where can we see the issue? What are the templates that have been overridden in the child theme?
Best regards,
IsmaelAugust 21, 2017 at 6:36 pm #842157Found the issue and it was a coding error in some customizations I had made to single-event.php.
August 22, 2017 at 8:20 am #842360 -
AuthorPosts
- The topic ‘Enfold and The Events Calendar’ is closed to new replies.