Home › Forums › Calendar Products › Community Events › Default template always loads page.php
- This topic has 7 replies, 5 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
August 2, 2013 at 8:47 pm #58640
Carl
ParticipantLine 80 of /lib/tribe-templates.class.php loads page.php as the event template regardless of settings.
August 5, 2013 at 6:06 am #58786Casey
ParticipantCarl,
Thanks for reaching out! If you want to customize the Event Submission form, you’ll just need to perform a Template Override by copying ‘form.php’ from ‘wp-content/plugins/the-events-calendar-community-events/views’ to ‘wp-content/themes/YOUR_THEME/tribe-events/community’.I hope that helps! Just let me know if you have further questions. Thanks!
August 7, 2013 at 7:11 am #59264Carl
ParticipantHey Casey,
Thanks for the response. I get that I can modify either form.php or event-list.php. I have done that with success. The problem is the page template (whatever is controlling header, footer, sidebar) how is that adjusted?
The Events-Calendar plugin has a dropdown box for selection (in the backend settings), but Community Events seems to ignore that value. In my case it’s always pulling page.php.
Thanks
August 7, 2013 at 1:50 pm #59379Casey
ParticipantCarl,
I’m seeing that page.php is hardcoded if you look in ‘plugins/the-events-calendar-community-events/lib/tribe-community-events.class.php’ on line 385 in the ‘addRoutes’ method.I’ve submitted a proposed feature to our developers to have Community use the same Page Template that TEC uses for consistency. I’ll keep you updated on the status of this.
In the mean time, I’ll see if one of our developers can create a workaround for you. Stay tuned…
August 8, 2013 at 7:24 pm #59623Casey
ParticipantCarl,
One of our developers has come up with a workaround, so that you can specify which template Community should use. Paste the following code into your theme’s functions.php file: https://gist.github.com/jazbek/6189599Make sure to change the filename to the template you’d like to use. Let me know if that does the trick for you. Thanks!
April 9, 2014 at 2:13 am #129918Adrian Cumpanasu
ParticipantTo me seems to not be working. It still loads page.php as wrapper.
I did put that code in functions.php, and duplicated page.php with the name set in the code. Not working.April 11, 2014 at 3:28 pm #131532Leah
MemberHi Luigi,
We’d be happy to help you out, but would you mind starting your own thread? That way we can focus on your specific situation.
Thanks,
LeahJuly 7, 2015 at 6:30 am #983184Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Default template always loads page.php’ is closed to new replies.
