Support

Home Forums Event Espresso Premium EE4 Page Template

EE4 Page Template

Posted: December 8, 2014 at 7:04 pm

Viewing 1 reply thread


Matt tuttle

December 8, 2014 at 7:04 pm

Hello,

Can anyone tell me where I change the default theme template used by event espresso 4? I need to display a different menu on my event registration pages.

Thanks in advance,
Matt


Dean

December 9, 2014 at 12:38 am

Hi,

The plugin uses the theme as a base, so it will call the get_header() function to pull in the header.php of your theme. This is usually where the navigation code is held.

Take a look at these as an example:
/wp-content/plugins/event-espresso-core-reg_445/public/Espresso_Arabica_2014/archive-espresso_events.php
/wp-content/plugins/event-espresso-core-reg_445/public/Espresso_Arabica_2014/single-espresso_events.php

I think you would need to examine your themes header.php and look to include an if else statement to detect if you are on a event related page and show a different menu from there. I recommend doing this via a child theme otherwise theme updates will over write your changes.

Here’s an example: https://gist.github.com/Apina/fbbcf04cfce29f503086

Viewing 1 reply thread

The support post ‘EE4 Page Template’ 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