Home › Forums › Calendar Products › Community Events › Add Event Form Template
- This topic has 28 replies, 4 voices, and was last updated 8 years, 10 months ago by Support Droid.
-
AuthorPosts
-
December 4, 2013 at 2:28 am #80078bamforpParticipant
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?
ThanksDecember 4, 2013 at 5:43 pm #80244CaseyParticipantBamforp,
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!December 4, 2013 at 11:12 pm #80285bamforpParticipantHi. 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.December 5, 2013 at 5:32 am #80316CaseyParticipantBamforp,
If you go into ‘Events->Settings->Display->Events Template’ what option is selected there in the dropdown?December 5, 2013 at 8:27 am #80342bamforpParticipantHi – 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(); ?>
December 5, 2013 at 11:28 am #80380CaseyParticipantWhat 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!
December 6, 2013 at 1:36 am #80486bamforpParticipantI running 3.2 for both Events and Community.
Code is here …
https://gist.github.com/anonymous/40b237123fc5942085c4
regardsPeter
December 10, 2013 at 7:31 am #80990bamforpParticipantAny update on this issue? It’s gone very quiet!
December 10, 2013 at 11:29 am #81074CaseyParticipantBamforp,
Try putting the ‘tribe-events’ directory in the parent theme directory and let me know if that fixes the issue. Thanks!December 11, 2013 at 7:08 am #81221bamforpParticipantHi – I moved the tribes-events to the parent theme directory but no change in behaviour. Any other clues?
December 11, 2013 at 9:04 am #81247CaseyParticipantBamforp,
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/7914377Let me know if that does the trick!
December 11, 2013 at 10:16 am #81254bamforpParticipantNo 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 🙂
December 11, 2013 at 10:20 am #81255CaseyParticipantHmmm, 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?
December 12, 2013 at 12:23 am #81370bamforpParticipantNo cigar 🙁 Would it help if I set you up with temp admin access to my site?
December 12, 2013 at 5:22 am #81384CaseyParticipantYes, if you can send me a private reply with admin access and FTP access to your site, I’ll take a closer look. Thanks!
-
AuthorPosts
- The topic ‘Add Event Form Template’ is closed to new replies.