Support

Home Forums Event Espresso Premium EE4 Events Displayed like Blog Posts

EE4 Events Displayed like Blog Posts

Posted: March 25, 2014 at 1:32 pm


Andriy

March 25, 2014 at 1:32 pm

Hello i have the latest version of WordPress as well as latest EE4 available.

It appears that my events lists as well as each event are being displayed like a blogpost so next to the event desc. there is a date and time it was published..etc.. how can i make EE4 to treat it’s pages as Full-Width pages and NOT blog posts?

Thank you!


Lorenzo Orlando Caum

  • Support Staff

March 25, 2014 at 2:36 pm

Hi Andriy,

There are a few methods available for customizing Event Espresso 4:

https://eventespresso.com/2014/02/developers-corner-theming-event-espresso-4/

Before creating a child theme, I would try creating some theme templates from some existing files in your theme folder:

archive-espresso_events.php – used for /events/ page

single-espresso_events.php – used for /events/my-new-event/ page

They should go in this location:

wp-content/themes/YourThemeFolder


Lorenzo


Andriy

March 26, 2014 at 6:48 am

Hello,
I’m sorry but i am not a wordpress developer per se.. i am not sure that I can do theme customizing ..etc.. is there some instructions on how to make EE4 to display as a FULL width page or just a default page and not as blogpost? like EE3 did?


Josh

  • Support Staff

March 26, 2014 at 5:57 pm

Hi Andriy,

It really depends on how your theme is structured, so we do not have step by step instructions for this. Event Espresso 3 did not have support for events as custom post types, everything happened on regular WordPress pages.

You can achieve an event list archive page much like the way Event Espresso 3 worked by creating a new page and placing the [ESPRESSO_EVENTS] shortcode on it. This will allow you to select a full page template.

The single event view is a little trickier because events are custom post types they display within your theme’s single post template. One way to accomplish a full width layout is by taking the theme’s full-width page template and making a copy of it, then renaming it single-espresso_events.php and swapping in this line of code where it loads up page content:

espresso_get_template_part( 'content', 'espresso_events' );

-or- copy over single-espresso_events.php from the templates folder in the Event Espresso plugin like Lorenzo mentioned and remove the call to get the sidebar:

get_sidebar( 'content' );
get_sidebar();

Again, this will depend on how your theme is structured and will likely require some additional tweaking to get it just right.

The support post ‘EE4 Events Displayed like Blog Posts’ 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