Home › Forums › Calendar Products › Events Calendar PRO › ECP Template Overrides
- This topic has 11 replies, 3 voices, and was last updated 12 years, 2 months ago by
Barry.
-
AuthorPosts
-
January 15, 2014 at 9:29 pm #93366
Gould
ParticipantI am trying to upgrade from 2.0 to 3 on my test site. I have scoured the forums and I am getting confusing answers. Some say to put overrides in a folder called theme>events. Some say theme>tribe-events. Some say theme>tribe-events-pro. WHICH IS IT? The calendar on my production (live) site in 2.0 is finally (almost) working, but I can’t get 3.3 to work at all.
January 15, 2014 at 9:47 pm #93370Gould
ParticipantMaybe I’m thick, but I don’t understand THIS:
2. Locate the files you wish to edit
The template view files are located in the following places:
The Events Calendar template files
/wp-content/plugins/events/views/The Events Calendar Pro template files
/wp-content/plugins/events-calendar-pro/views/The Community add-on template files
/wp-content/plugins/events-community/viewsAm I supposed to use the Events Calendar Pro template files? Where do I put them,
in a folder in my theme called “tribe-events” or “tribe-events-pro”.For 2.0, I had a folder called EVENTS and added the template view files and the css to it, and that
worked. This, I don’t understand.Can I use the code that I used to customize the views in 2.0? If not, what has changed? What are the
new CSS selectors?I have spent hours trying to get started, and I’m not getting anywhere.
January 16, 2014 at 6:03 am #93440Barry
MemberHi geniagould,
I’m sorry you’ve had such a frustrating experience.
There are still many references to 2.x-specific ways of doing things, especially here on the forum, and we didn’t feel it would be the right course of action or even practicable to purge them all – the themer’s guide and all our official references have been updated, however, and those relating to 2.x have been clearly marked as such.
Some say to put overrides in a folder called theme>events. Some say theme>tribe-events. Some say theme>tribe-events-pro. WHICH IS IT?
If your theme was the default Twenty Twelve theme, to take a real example, they would go in themes/twentytwelve/tribe-events/…
Am I supposed to use the Events Calendar Pro template files? Where do I put them, in a folder in my theme called “tribe-events” or “tribe-events-pro”.
You certainly can copy, override and customize the PRO templates. Following on from the previous example, if you wished to override the events-calendar-pro/views/pro/day/content.php template your copy would live at:
themes/twentytwelve/tribe-events/pro/day/content.php
An example of a Community Events template override:
themes/twentytwelve/tribe-events/community/edit-event.php
In summary then your theme needs to have a tribe-events subdirectory – within that, the path should basically always be the same as it is within the relevant plugin’s views directory. I hope that helps, but let me know if anything remains unclear 🙂
January 16, 2014 at 12:56 pm #93629Gould
ParticipantBarry, am not having any ssue with the presence of 2.x posts, though it would be good if ya’ll delineated the differences. In any case, how do I style the event list widget? I believe I saw something in the docs that called for a separate style sheet for the widget, is this correct? Also, where does the main stylesheet override go?
January 16, 2014 at 1:16 pm #93634Gould
ParticipantPlease take note of my comment above. (Why is there no option to edit?) You didn’t answer my first question. Do I override files from ECPro or from TEC? Or do I override from both?
January 16, 2014 at 1:17 pm #93636Gould
ParticipantThis reply is private.
January 16, 2014 at 1:20 pm #93638Gould
ParticipantThis reply is private.
January 16, 2014 at 4:23 pm #93761Rob
MemberHey Suzy: the team alerted me to your follow-up here, and I’m happy to try and get you sorted best I can. But to be honest…I’m not really sure what you’re asking us to do here? We can totally try to point you in the right direction on the 2.x to 3.x upgrade but ultimately, customizations will need to be redone and that’s not something we can provide individual guidance on.
I will say that regarding the overrides – it sounds like you’re trying to do separate overrides for the free The Events Calendar (core) and Events Calendar PRO (the premium add-on). Could that be the source of confusion here?
Please let me know if we’re misunderstanding what you’re trying to do.
January 16, 2014 at 4:27 pm #93766Gould
ParticipantRob, that’s exactly what I’m asking about. What I said in the beginning is that, while going through the forums, I saw posts that instructed the user of the ECP3x to create and put overrides into a folder named tribe-events, other posts that said to use tribe-events-pro. I am not trying to do separate overrides for anything. I’m just trying to find out what to use.
January 17, 2014 at 7:49 am #94001Barry
MemberHi Suzy.
Sorry for the confusion.
The most up-to-date information about this sort of thing is in our Themer’s Guide – but the short answer is you should use a directory named tribe-events: if you can revisit my first reply and look at those examples you will see that they all use a tribe-events directory (within the Twenty Twelve theme directory, but of course your theme will be different), even if it is an Events Calendar PRO or Community Events template that is being overridden.
Is there a template we can provide specific guidance on here?
January 17, 2014 at 2:23 pm #94162Gould
ParticipantYour “short answer” is the answer I was looking for. There are many posts on this site that instruct the user to make a tribe-events-pro directory. Is this ever the case?
January 20, 2014 at 6:45 am #94669Barry
MemberGlad we got there!
To answer your second question, there have certainly been different conventions in use with different versions of the plugin and yes, if memory serves correctly, that is what we were using before the 3.0 release.
Since it sounds like we’re all sorted here I will go ahead and close this thread. Of course if there is anything else we can help with please don’t hesitate to create a new thread or threads as needed.
-
AuthorPosts
- The topic ‘ECP Template Overrides’ is closed to new replies.
