• Hello,

    I’m using Thematic, and building out my own theme as a child-theme. In doing so, in order to fix the theme getting broken, I attempted to place an ‘events’ directory in my new child theme folder, with gridview.php, list.php, single.php and events-list-load-widget-display.php contained in it.

    However, the events calendar didn’t go and search for its customized folders inside the child theme folder. Only in the Thematic folder. So that means if I were to create any further child themes, the updates I did to the calendar would apply to all of them.

    Can anyone tell me how to edit Thematic or the Events Calendar so that it looks within the child theme directory for those updated files?

    Thanks.

    Will Lanni

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hey Will,

    interesting issue. I am not quite sure how we could get the rewrite rules to do that. Let me chat about it with kelsey and get back to you.

    Thread Starter Will

    (@wlanni)

    Sure enough.

    Honestly, it’s not a huge deal-breaker, as this site is really only going to stick with one theme, but I figured it’s something to place on the radar, as I did read someone else having a similar issue with a ‘child-theme’ elsewhere.

    I’ve got a couple other things that I’m searching the threads here for answers to that are much more important, so as far as I’m concerned (as the person posting the ‘issue’), this could be a low-priority issue to track.

    Anyway, thanks!

    The problem is lines 2009 and 2010 in the-events-calendar.php file.

    The plugin uses TEMPLATEPATH instead of STYLESHEETPATH. TEMPLATEPATH is the path of the parent theme, not the child theme.

    So two options:

    1) Hack the file, so that STYLESHEETPATH is used instead of TEMPLATEPATH. If you update the plugin, you’ll have to redo the change.

    2) Create the events folder in the parent theme, namely the thematic folder.

    Simply changing it to STYLESHEETPATH would also be incorrect.

    The plugin should be using locate_template() rather than checking for the file based on TEMPLATEPATH. This solves the parent/child theme issue.

    See:
    http://codex.wordpress.org/Function_Reference/locate_template

    @greenshady I doubled up on this thread elsewhere (my mistake), @shane.pearlman’s added it as a ticket to 1.6

    This is all great! But what do I do until this problem is fixed with a new release?

    Opt. 1
    Put events-folder in my thematic folder? Seems to be the easiest solution. And when the problem is fixed I’ll just move that folder to the child theme folder to keep my modifications, right?

    Opt. 2
    Hack the plugin as described above? Well, the hack will change with when updating to the next release, but I’m not too comfortable with hacking code I don’t really understand.

    Opt. 3
    Just wait for an update? No, I can’t do that 😛

    I’ll go for Opt. 1. what do you say?

    either 1 or 2, but one seems easiest.

    johnsamwallace

    (@johnsamwallace)

    As a rule of thumb, I usually follow the trajectory of likely fixes/upgrades. This would mean hacking the plugin.

    @wlanni

    I checked out your events site and have seen your posts in the forums. I notice you use TEC and Thematic. Have you by chance found a way to display the events calendar (gridview, list, etc…) and still retain the thematic_sidebar?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: The Events Calendar] Thematic Support’ is closed to new replies.