Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #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!

    #838563

    Hey 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,
    Victoria

    #838648

    In 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.

    #839290

    Hi 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,
    Victoria

    #839300

    I don’t believe there is any need to provide admin access. To reproduce this issue, do the following:

    1. install The Events Calendar, the Enfold theme and a child theme
    2. 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/

    #840760

    Hi,

    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-787130

    Best regards,
    Ismael

    #840891

    Perfect! Thanks for the response…

    #841099

    After 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!

    #841859

    Hi,

    Where can we see the issue? What are the templates that have been overridden in the child theme?

    Best regards,
    Ismael

    #842157

    Found the issue and it was a coding error in some customizations I had made to single-event.php.

    #842360

    Hi,

    Alright. Glad you figured it out. We’ll close the thread now.

    Best regards,
    Ismael

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Enfold and The Events Calendar’ is closed to new replies.