Add Event Form Template

Home Forums Calendar Products Community Events Add Event Form Template

Viewing 15 posts - 1 through 15 (of 29 total)
  • Author
    Posts
  • #80078
    bamforp
    Participant

    Hi – I am using Community Events with a custom event template in my child theme to show a particular sidebar on the event views. The month and list views apply the specified template without a problem but the new event form page is ignoring my custom template and using my themes home page sidebar. Is this the expected behavior – if not any clues where I should be looking to fix?
    Thanks

    #80244
    Casey
    Participant

    Bamforp,
    Sorry to hear you’re having these issues. Could you give me a URL to your Community Submission page, so I can take a closer look? Thanks!

    #80285
    bamforp
    Participant

    Hi. Link is http://nhap.org/events/supporters/add
    If you contrast with http://nhap.org/events/ you will see the ‘add’ page is using the default sidebar (red buttons) rather than my custom template which shows the ‘blue’ sidebar.

    #80316
    Casey
    Participant

    Bamforp,
    If you go into ‘Events->Settings->Display->Events Template’ what option is selected there in the dropdown?

    #80342
    bamforp
    Participant

    Hi – Default Events Template but I have a custom default-template.php file in a tribe-events subdirectory of my child theme. The custom template code is …

    Settings -> Template -> Events Template.
    *
    * Override this template in your own theme by creating a file at [your-theme]/tribe-events/default-template.php
    *
    * @package TribeEventsCalendar
    * @since 3.0
    * @author Modern Tribe Inc.
    *
    */

    if ( !defined(‘ABSPATH’) ) { die(‘-1’); }

    get_header(); ?>

    #80380
    Casey
    Participant

    What versions of the Events Calendar and Community are you running? Also, could you paste that code somewhere like PasteBin and then share the link with me so I can see the whole file? Thanks!

    #80486
    bamforp
    Participant

    I running 3.2 for both Events and Community.
    Code is here …
    https://gist.github.com/anonymous/40b237123fc5942085c4
    regards

    Peter

    #80990
    bamforp
    Participant

    Any update on this issue? It’s gone very quiet!

    #81074
    Casey
    Participant

    Bamforp,
    Try putting the ‘tribe-events’ directory in the parent theme directory and let me know if that fixes the issue. Thanks!

    #81221
    bamforp
    Participant

    Hi – I moved the tribes-events to the parent theme directory but no change in behaviour. Any other clues?

    #81247
    Casey
    Participant

    Bamforp,
    I just realized that the Community add-on is using page.php when the ‘Default Events Template’ option is selected. Try pasting this code snippet into your theme’s functions.php file to get Community to use a different page template: https://gist.github.com/ckpicker/7914377

    Let me know if that does the trick!

    #81254
    bamforp
    Participant

    No joy. I changed entry on line 4 to default-template.php and put code in the functions.php of my child theme. Sounds like we might be getting close though 🙂

    #81255
    Casey
    Participant

    Hmmm, that’s really strange. I just tested this in my local environment and it worked for me. Can you try putting it in functions.php file of the parent theme?

    #81370
    bamforp
    Participant

    No cigar 🙁 Would it help if I set you up with temp admin access to my site?

    #81384
    Casey
    Participant

    Yes, if you can send me a private reply with admin access and FTP access to your site, I’ll take a closer look. Thanks!

Viewing 15 posts - 1 through 15 (of 29 total)
  • The topic ‘Add Event Form Template’ is closed to new replies.