use different page template based on grid view or other

Home Forums Calendar Products Events Calendar PRO use different page template based on grid view or other

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #27525
    Cathy
    Participant

    Can you assist in telling me where I would modify the template to state:
    If full calendar display use the default event template else use the page default? the default page template has a side bar that I do want to use however, the calendar grid view is too wide and I would like that not to have a side bar.
    Thanks,
    Cathy

    #27543
    Barry
    Member

    Hi Cathy!

    The first thing to do is read up on our Themer’s Guide – we’ve also got a good tutorial on template overrides you might be interested in (if you haven’t already read these resources).

    One approach you could try here is to modify your custom ecp-page-template.php template and add some logic at the top testing to see if a month view has been requested and, if so, loading whichever template you wish to use.

    Some template tags you might be interested in here:

    • tribe_is_month()
    • get_template_part()

    Does that help here?

    #27739
    Barry
    Member

    Hi Cathy: did this approach work or are you otherwise all sorted here? If so, I’m inclined to close this thread. Thanks!

    #27745
    Cathy
    Participant

    Thanks for the feedback Barry. However, I am not a coder so, what would be the syntax for the above tags and where would I place them?

    If you can point me in that direction, then I am good!

    thanks!

    #27755
    Barry
    Member

    Hey Cathy,

    In your custom ecp-page-template.php template file you could do something like this http://pastebin.com/M2q6jL68 … you would need to be able to identify whichever template within your theme is responsible for rendering full width pages, though.

    #978134
    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 6 posts - 1 through 6 (of 6 total)
  • The topic ‘use different page template based on grid view or other’ is closed to new replies.