Home › Forums › Calendar Products › Events Calendar PRO › Templates not found in plugin folders
- This topic has 7 replies, 3 voices, and was last updated 10 years, 8 months ago by
Nico.
-
AuthorPosts
-
July 20, 2015 at 1:53 pm #988130
Jim
ParticipantHi,
Can you help with some direction to nudge me towards solutions for the following?
(Tips and tutorials for these topics much welcomed.)1. I would like to be able to add some common (same) text to appear above the search bar for each of the archive views (list, month, photo, etc.) but not on single events. Is there a single template that can be customized for this purpose, or an available hook? Or do I have to customize multiple templates?
2. I would like to relocate “tribe-events-sub-nav” to a location further up the page (above (or below) search bar) and possibly customize the link text (e.g. from “<< August // September >>”) for archives and single events.
3. The Hooks link from the Support page only leads to a search widget :(.
Thanks,
July 20, 2015 at 11:33 pm #988243Brook
ParticipantHowdy Jim!
I would love to help you with that.
1. I would like to be able to add some common (same) text to appear above the search bar for each of the archive views (list, month, photo, etc.) but not on single events. Is there a single template that can be customized for this purpose, or an available hook? Or do I have to customize multiple templates?
There is a hook called ‘tribe_events_before_html’, and even a setting on the backend that allows you to input HTML content to appear on every page. You can detect if it is a single events page by using is_single(). This snippet is for hiding the tribe_events_after_html hook on various pages, and can be easily adapted.
https://gist.github.com/elimn/0e74ca00e5b492a4c57a
2. I would like to relocate “tribe-events-sub-nav” to a location further up the page (above (or below) search bar) and possibly customize the link text (e.g. from “<< August // September >>”) for archives and single events.
Absolutely possible. Checkout the Themer’s Guide for more information on our templates. They are pretty logically layed out, once you see the guide it will likely make a lot of sense. But if I can expound on anything please let me know.
3. The Hooks link from the Support page only leads to a search widget :(.
Thanks for reporting that. The hooks section is an upcoming one for our site. Where did you find a live link to it? If I know I’d love to remove it. It’s not ready yet hence the issue.
Does that all make sense? Will that work for you? Please let us know.
Cheers!
– Brook
July 22, 2015 at 12:29 pm #989032Jim
Participant< My earlier reply somehow got binned. >
Thanks, Brook.
1. That snippet put me on the right path.
2. This can be (partially) achieved by CSS with this snippet. The nav items are present in the header output, but hidden. This works fully on Skeleton Style and Full Style, but on Tribe Events style it only half works: the “next” nav in the header does not display (“prev” does). Hints here would be most helpful to keep me from having to compare the three stylesheets 🙂
#tribe-events-header .tribe-events-sub-nav li { display: inline-block; }Something new: In a view that contains divisions (e.g. month contains weeks, weeks contains days, etc.), but has no content on the division (e.g. month no events for this week, week has no event for today), TEC returns “Page not found”. I had expected this to be handled as in the demo: “No events scheduled for Month dd, yyyy. Please try another day.” Resaving permalinks did not help.
July 23, 2015 at 5:30 pm #989743Nico
MemberHey Jim,
Thanks for the follow-up! Brook is out today so I’ll continue to help you out on this.
1. 🙂
2. Not sure about what you are trying to achieve with that CSS. But maybe just bumping it’s priority helps?
#tribe-events-header .tribe-events-sub-nav li {
display: inline-block !important;
}
Regarding the “Page not found” issue you describe, please update to the latest version -3.11- of our plugins just released today. Empty views shouldn’t return 404’s any more. Please check if this solves what you describe or let me know if there’s anything else I can do on that end.
Best,
NicoJuly 23, 2015 at 11:01 pm #989770Jim
ParticipantHey, Nico,
The 3.11 upgrade did fix the 404 problem.
#2: When using the “Skeleton Style” or “Full Style”: the PREV/NEXT menu links found at the bottom of the event list/month/day etc. display normally and also appear at the top of the list/month/day etc.
When using the “Tribe Events Styles”: the top prev/next links do not display at all. They are of course output in the HTML, but apparently lack the proper CSS to display them. I found that the snippet provided revealed the existing PREV Link when using “Tribe Events Styles” – but not the NEXT link.
Both of the PREV/NEXT links are contained inside “#tribe-events-header .tribe-events-sub-nav li”, so increasing its priority won’t help.
I was hoping not to have to troubleshoot this.
July 27, 2015 at 12:14 pm #990663Nico
MemberHi Jim,
Thanks for clarifying on #2 and glad to hear the update fixed #1.
Please try this updated snippet, tried it myself locally and it works like a charm!
#tribe-events-header .tribe-events-sub-nav li,
#tribe-events-header .tribe-events-sub-nav li a {
display: block !important;
}
Please let me know if it works for you,
Best,
NicoJuly 28, 2015 at 11:28 am #991141Jim
ParticipantHi Nico,
That snippet worked, thanks.I also have found an additional issue, if you can help here, or should I start another thread?
Simply, it seems, the map view will only display events for a venue that has added lat/long data. No other venues/events are displayed in map view. The geoloc/update notice is not displayed.
July 29, 2015 at 2:09 pm #991564Nico
MemberHi Jim,
Thanks for the follow-up, glad to hear that worked for you 🙂
If you could please open up a new thread for that it will be great!
I’ll go ahead and close out this one as the original issues as solved.Best,
Nico -
AuthorPosts
- The topic ‘Templates not found in plugin folders’ is closed to new replies.
