Support

Home Forums Event Espresso Premium Choose which template file Event page uses

Choose which template file Event page uses

Posted: January 23, 2015 at 2:35 pm


Ismail Jeilani

January 23, 2015 at 2:35 pm

By default, I found that EE4 event pages use the ‘single.php’ template file for the Event page found at example.com/events/some_events_page

I have two questions:

  • Is it possible to change which template file is used?
  • My single.php file has a sidebar inside it. Is it possible to change the content of that sidebar specifically, i.e. change the widgets inside it?

Thanks


Lorenzo Orlando Caum

  • Support Staff

January 23, 2015 at 3:44 pm

Hi Ismail, yes you can change the theme template to use a different layout.

You’ll need to setup some templates for Event Espresso 4 and that takes a few minutes.

Please see this tutorial:

https://gist.github.com/lorenzocaum/16aac08f099d7c154f04

In step 5, look for an existing theme template that has a sidebar. It varies from theme to theme but it may appear with one of these names:

page.php
page-with-right-sidebar.php
page-with-left-sidebar.php

Let us know if you are able to get this working.


Lorenzo


Ismail Jeilani

January 24, 2015 at 12:03 pm

Thanks for the quick response,

I tried the tutorial using a page with no sidebar, as I wanted to see what that would look like.

When I loaded the event page it only showed the event title and description without the ticket selector or venue details etc. that I usually have on the page.


Lorenzo Orlando Caum

  • Support Staff

January 25, 2015 at 1:16 pm

Hi Ismail,

You may have skipped step 5:

https://gist.github.com/lorenzocaum/16aac08f099d7c154f04

You’ll need to replace the line that retrieves the default content so that it looks for the information from Event Espresso.


Lorenzo


Lorenzo Orlando Caum

  • Support Staff

May 25, 2015 at 10:24 am

Hello, I wanted to share an additional resource that is now available for the templates for Event Espresso 4.

It explains how to the starter templates work with each other and you can view it here:

https://gist.github.com/lorenzocaum/0a35fe4997992fdb1dc5

If you have any questions or something is confusing, then you can create a new support post here:

https://eventespresso.com/support/forums/

Thanks


Lorenzo

The support post ‘Choose which template file Event page uses’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso