Home › Forums › Calendar Products › Events Calendar PRO › Custom Template Not Working
- This topic has 7 replies, 2 voices, and was last updated 8 years, 11 months ago by
Jesse.
-
AuthorPosts
-
April 20, 2017 at 1:42 pm #1272388
Jesse
ParticipantHello,
I’m trying to setup a custom photo template but it’s not reading my template file. I’ve placed my file here:
/wp-content/themes/specular-child/tribe-events/pro/photo.phpAlso tried:
/wp-content/themes/specular/tribe-events/pro/photo.phpI removed the filter bar in my template but it’s still showing up. See here:
http://newsite.artgymdenver.com/photo-test/Shortcode being used is [tribe_events view=”photo”]
Am I missing something?
April 21, 2017 at 8:17 am #1272680Jesse
ParticipantStill looking for a response to this please…
April 22, 2017 at 12:45 pm #1273142Victor
MemberHi Jesse!
Thanks for getting in touch and for using our plugins! 🙂
Unfortunately, the shortcode you are using does not make use of the Photo View Template file. This template is only for the main calendar.
However, you can turn the “Tribe Bar” off by using the tribe-bar attribute like this >
[tribe_events view=”photo” tribe-bar=”false”]
In the following article you can find this and other attributes that may be useful >Â https://theeventscalendar.com/knowledgebase/embedding-calendar-views-tribe_events-shortcode/
Let me know how that goes and if you have other questions.
Best!
VictorApril 24, 2017 at 9:00 am #1273462Jesse
ParticipantOk that makes no sense. Per your documentation I should be able to call a custom template. If I switch my code to:
[tribe_events view=”photo-custom”] and rename my file photo-custom.php it still calls the main photo template and not my custom template. If I can’t use custom templates I’ll be requesting a refund. Please advise…
April 24, 2017 at 9:04 am #1273464Jesse
ParticipantYou even mention in the template files:
* Override this template in your own theme by creating a file at [your-theme]/tribe-events/pro/photo.phpI should be able to call a custom template….
April 25, 2017 at 6:01 pm #1274415Victor
MemberHi Jesse!
I’m really sorry it does not work as you expect.
Let me try and explain how you could still customize the templates to suit your needs.
If I switch my code to: [tribe_events view=”photo-custom”] and rename my file photo-custom.php it still calls the main photo template and not my custom template.
The “view” attribute for the shortcode is only meant to work for selecting one of the event views from the calendar. You can find all about the views here > https://theeventscalendar.com/knowledgebase/embedding-calendar-views-tribe_events-shortcode/
You can still customize those views template files that are located in:
- /wp-content/plugins/the-events-calendar/src/views/
- /wp-content/plugins/events-calendar-pro/src/views/pro/
For example, if you want to customize the photo view, then you should see the template files located in /wp-content/plugins/events-calendar-pro/src/views/pro/photo/
You might have already seen it, but there is a great article on customizing template files in our themer’s guide here > https://theeventscalendar.com/knowledgebase/themers-guide/
If you were to set up a completely new template file to show a page with a shortcode in it, you could do so by creating a custom page template for global use in WordPress > https://developer.wordpress.org/themes/template-files-section/page-template-files/#creating-custom-page-templates-for-global-use
I hope this helps and let me know if you have any other questions and we’ll be happy to help. 🙂
Best!
VictorMay 17, 2017 at 9:37 am #1285010Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Custom Template Not Working’ is closed to new replies.
