Home › Forums › Calendar Products › Community Events › Individual module overrides not working
- This topic has 5 replies, 2 voices, and was last updated 10 years, 3 months ago by Casey.
-
AuthorPosts
-
January 3, 2014 at 1:34 am #86035TonyParticipant
I have created a number of override templates and placed them in:
[my-theme]/tribe-events/community/modules/
e.g.
[my-theme]/tribe-events/community/modules/image.php
However, the Community Event Plugin is ignoring them. It shows the default template part from the plugin folder rather than my theme folder.
Any idea what’s going on?
Do I need to change ” tribe_get_template_part(‘modules/image’)” in [my-theme]/tribe-events/communityedit-event.php to something else?
January 3, 2014 at 6:33 am #86096CaseyParticipantTrumpeter,
Sorry to hear you’re having problems, but hopefully I can help you out! Is your theme a child theme? If so, then you’ll need to place the template overrides in the parent theme for them to be active. If that’s the case, then give it a shot and let me know if that does the trick. Otherwise, let me know and we can continue to investigate.Thanks!
January 3, 2014 at 6:36 am #86098TonyParticipantHI Casey,
No it’s not a child theme, it’s a parent theme. The modules folder is being ignored since I upgraded to 3.3.January 3, 2014 at 6:46 am #86110CaseyParticipantTony,
It looks like you might have some outdated template files in your theme. You can either update all of your ‘tribe_get_template_part’ references to include the ‘community’ folder like this:
<?php tribe_get_template_part( 'community/modules/taxonomy' ); ?>
Or you can re-copy all of the template files from ‘/wp-content/themes/plugins/the-events-calendar-community-events/views/’ back to your theme. NOTE: if you re-copy the template files, they will overwrite any changes you’ve previously made in your theme’s copies.
Give either of those options a try and let me know if that does the trick!
January 3, 2014 at 7:28 am #86158TonyParticipantGreat, that fixed it. Thanks.
January 3, 2014 at 7:32 am #86164CaseyParticipantThanks for confirming that this got you sorted. Since it sounds like this did the trick, I’m going to mark this thread “Answered” and close it out.
By the way, if you have a minute or two, we would love it if you’d write a few words for us here: http://wordpress.org/support/view/plugin-reviews/the-events-calendar?filter=5
Thanks in advance. 🙂
Cheers,
Casey -
AuthorPosts
- The topic ‘Individual module overrides not working’ is closed to new replies.