Different WP template for calendar and event page?

Home Forums Welcome! Pre-Sales Questions Different WP template for calendar and event page?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #988459
    Tom
    Guest

    Is it possible to use different WP templates for calendar and event page?
    e.g. the full-width template for the calendar and the default template with sidebar for the single event page.

    #988489
    Geoff
    Member

    Hi Tom,

    Good question! Yes, the plugin does indeed use two separate templates for the calendar and the single event post. You can see our Themer’s Guide for an entire list of available template (including how to override them), but for reference these are the two templates being used:

    • default-template.php
    • single-event.php

    Does this help answer your question? Please let me know and cheers!

    Geoff

    #988907
    Tom
    Guest

    Thanks for your quick reply.

    How can i set the different templates?
    I can only set one event template in the basic template settings. If i choose the “full-width” template, both sites (the calendar and the single event post) use it with full width.
    My goal is to have a calendar page in full-width (without a sidebar) and the single post event posts with my default sidebar.

    Can I set it with the PRO version?

    Thank you very much!

    #989080
    Geoff
    Member

    My pleasure and thanks for following up!

    I think the best way to differentiate the two template is to keep the default calendar template (which is already full-width) and override the single-event-php template by adding a sidebar to the template. That could be a sidebar that is already registered in your theme or perhaps a new one that you register specifically for this template.

    The Themer’s Guide is a great overview for how to override templates.

    Oh, and by the way, there is no need to purchase PRO in order to do this. The free version of the plugin can do template overrides of the same files. 🙂

    Cheers!
    Geoff

    #989268
    Tom
    Guest

    Thank you very much for your help!

    #989907
    Geoff
    Member

    My pleasure! Please feel free to hit us up with a new thread if any other questions pop up–we’d be happy to help. 🙂

    Geoff

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Different WP template for calendar and event page?’ is closed to new replies.