Custom templates no longer working

Home Forums Calendar Products Events Calendar PRO Custom templates no longer working

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #85003
    Lorri Walker
    Participant

    After upgrading to 3.3.1, the calendar pages are no longer recognizing the template overrides in the theme. The overrides were at mytheme/events before the upgrade, but I saw that the documentation now has mytheme/tribe-events so I renamed the directory. Renaming didn’t fix the problem, though.

    Here’s the file names I have in mytheme/tribe-events:
    ecp-page-template.php
    ecp-single-template.php
    gridview.php
    single.php

    In the Display settings, I have “Default Events Template” set as the Events template, which is the same way it was before.

    #86898
    Brook
    Participant

    Hello djfairbanks,

    Our 3.x plugin introduced a lot more powerful and easier to use API for templates. We removed a lot of the logic from our templates. With such a big update to the API, in order to use the new plugin and API features you have to revise the code in any 2.x template. This goes a bit beyond just renaming your directories. Please peruse through our 3.0 theming guide to get a feel for some of the changes. One awesome thing you will notice is that we now use template parts, you no longer have to over-ride an entire template if you just want to make a change to one section, like the header. Due to how this is broken up now, you might find it easiest to perform your modifications anew with the 3.0 theme as your blank canvas.

    If you are interested in some of the reasons why this has changed, and seeing the benefits in action, checkout our announcement from May when we introduced the update.

    Please let me know if that helps get you started in the right direction. I think you will really enjoy how much simpler it is to make changes now, especially smaller ones.

    – Brook

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Custom templates no longer working’ is closed to new replies.