Custom Template Not Working

Home Forums Calendar Products Events Calendar PRO Custom Template Not Working

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1272388
    Jesse
    Participant

    Hello,
    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.php

    Also tried:
    /wp-content/themes/specular/tribe-events/pro/photo.php

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

    #1272680
    Jesse
    Participant

    Still looking for a response to this please…

    #1273142
    Victor
    Member

    Hi 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!
    Victor

    #1273462
    Jesse
    Participant

    Ok 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…

    #1273464
    Jesse
    Participant

    You even mention in the template files:
    * Override this template in your own theme by creating a file at [your-theme]/tribe-events/pro/photo.php

    I should be able to call a custom template….

    #1274415
    Victor
    Member

    Hi 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!
    Victor

     

    #1285010
    Support Droid
    Keymaster

    Hey 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

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Custom Template Not Working’ is closed to new replies.