Default template always loads page.php

Home Forums Calendar Products Community Events Default template always loads page.php

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #58640
    Carl
    Participant

    Line 80 of /lib/tribe-templates.class.php loads page.php as the event template regardless of settings.

    #58786
    Casey
    Participant

    Carl,
    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!

    #59264
    Carl
    Participant

    Hey 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

    #59379
    Casey
    Participant

    Carl,
    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…

    #59623
    Casey
    Participant

    Carl,
    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/6189599

    Make sure to change the filename to the template you’d like to use. Let me know if that does the trick for you. Thanks!

    #129918
    Adrian Cumpanasu
    Participant

    To 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.

    #131532
    Leah
    Member

    Hi 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,
    Leah

    #983184
    Support Droid
    Keymaster

    This 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.

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Default template always loads page.php’ is closed to new replies.