Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Barry

    (@barryhughes-1)

    Hi there!

    So, forgetting about Event Rocket and its abilities to stick the main events page on the front of your blog for the moment, it’s important to note that the main events page isn’t actually a page – at no point will you see it listed alongside other pages or posts.

    The only thing Event Rocket does is make it appear on your homepage/frontpage, it doesn’t change it’s status as (for want of an official term) a “virtual page”.

    So, to customize it, you’d need to follow the same steps you would if Event Rocket wasn’t involved and either setup a template override or do something clever using the display HTML before/after the events page fields.

    Does that help at all?

    Thread Starter wheretoplaygames

    (@wheretoplaygames)

    It does. What is the “call” that pulls the full month calendar onto the homepage. This will help me find the right spot to edit.

    Thanks for your prompt reply.

    Plugin Author Barry

    (@barryhughes-1)

    So on Event Rocket’s side if you take a peek in inc/front-page-events.php you’ll see a method called events_on_front() … this is the source of the voodoo that “tricks” The Events Calendar into displaying the main events page when the homepage has been requested – the most important part arguably being where it hooks into parse_query.

    Within The Events Calendar, you’re probably going to be most interested in TribeEventsTemplates::load_ecp_into_page_template() and it’s call to tribe_get_view().

    Thread Starter wheretoplaygames

    (@wheretoplaygames)

    Fantastic! Thank you.

    Plugin Author Barry

    (@barryhughes-1)

    Pleasure ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to edit Main Events Page’ is closed to new replies.