WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: The Events Calendar] Thematic Support (10 posts)

  1. wlanni
    Member
    Posted 4 years ago #

    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

  2. Shane Pearlman
    Modern Tribe
    Posted 4 years ago #

    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.

  3. wlanni
    Member
    Posted 4 years ago #

    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!

  4. brian.gibson
    Member
    Posted 4 years ago #

    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.

  5. Justin Tadlock
    Member
    Posted 4 years ago #

    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

  6. Peter Wilson
    Member
    Posted 4 years ago #

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

  7. Metusela
    Member
    Posted 4 years ago #

    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 :P

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

  8. Shane Pearlman
    Modern Tribe
    Posted 4 years ago #

    either 1 or 2, but one seems easiest.

  9. johnsamwallace
    Member
    Posted 4 years ago #

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

  10. rwbennet
    Member
    Posted 3 years ago #

    @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?

Topic Closed

This topic has been closed to new replies.

About this Topic