Q re how ECP impacts WP templates.

Home Forums Calendar Products Events Calendar PRO Q re how ECP impacts WP templates.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #13793
    Peter
    Participant

    First, what I *really* want to do is put the events calendar on my home page. That’s all. Right now, I have an operating calendar at http://www.tburgevents.com/events/. I’d like it to appear, just the same, at http://www.tburgevents.com.

    Following comments from a previous discussion in the forums, I’m using


    in a new template for a page that WP then uses as the home page.

    But it’s clearly not the same — I need to get the page title and the month selection boxes added, among other things — but most importantly, I need to get the calendar to fill the full page at http://www.tburgevents.com.

    My question is as follows, and I realize it reflects ignorance, but I really am trying to learn, and I’ve spent a ton of time looking all over before posting here.
    ** What part of ECP overwrites the default layout of the theme I’m using? I want to find that so I can understand how to do that on my jury-rigged home page.

    I’m running ECP 2.0.3, and WP theme Chunk. I have no widgets running at present. Many thanks for any help you can provide.

    #13794
    Peter
    Participant

    Sorry. Should have Previewed post before posting it. My bad. Above, I’m using tribe_calendar_grid(); in my template to add the calendar to the page in question.

    #13802
    Peter
    Participant

    OK – I’ve moved further down the line. I noted that the events page is controlled by the “Default Events Template”, and tried to locate that, since that should address my concerns noted above. I found /plugins/the-event-calendar/views/ecp-page-template.php, which appeared to be the answer to everything. I copied that, and used it as the template that is used to create my home page.

    My home page then showed the title and the Event List / Calendar buttons, but not the month selectors or the calendar itself. Still, I feel like it’s a step forward.

    One of its lines is: ?php include(tribe_get_current_template()); ?

    and I’m now curious what defines the ‘current template’. I see from https://theeventscalendar.com/support/documentation/the-events-calendar-template-tags-general-functions/#functiontribe_get_current_template that this gets ‘the current page template that we’re on’ but I’m now wondering how it knows the current template — for instance, in this case does it *not* know the current template, and that’s why it’s failing to display in the same manner?

    I tried replacing include(tribe_get_current_template()) with include(tribe_calendar_grid()) and got the calendar to show along with the title, but I lost the Events List / Calendar buttons, and I still don’t have the month selectors. In addition, I see some error messages on the page now.

    Apologies for the verbosity. I still haven’t solved my problem, but I’m not as stumped as I was before. If anyone wants to chime in, I welcome feedback, but I also see some paths to take before begging for further assistance.

    #13854
    Rob
    Member

    Hey Peter. You raise a good point here. Let me see if I can get one of our devs to clear this up for you; I can understand the position you’re in but am probably not in the best position to explain it. I’ll ask Jonah to take a look here and see what he can suggest.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Q re how ECP impacts WP templates.’ is closed to new replies.