Support

Home Forums Event Espresso Premium EE event template does not come up

EE event template does not come up

Posted: June 6, 2019 at 2:27 am

Viewing 2 reply threads


MetricsMedia

June 6, 2019 at 2:27 am

Hi team,
I want to use a new layout for my website and have a chosen a ready made template. Now I have installed EE, created a test event, but its not coming up. Please see this event overview page here: http://cm4.de.dedivirt321.your-server.de/events/, there you find the test event which refers to this page: http://cm4.de.dedivirt321.your-server.de/Veranstaltungen/test/

But on this page, I see a normal blog post instead of the event template. What am I doing wrong? Thx a lot.

Kind regards,
Philipp


Josh

  • Support Staff

June 6, 2019 at 7:39 am

Hi Philipp,

I checked the site and it’s actually a problem with the Specular theme that’s causing the event’s content to not display. We’ve seen this happen on another site that uses the same theme.

One important thing to know is there isn’t actually an Event Espresso event template. Instead, what happens is Event Espresso adds the event’s content via the WordPress
the_content filter hook. The problem with Specular is it overrides the WordPress the_content filter hook.

Here’s a solution for this:

Open up /wp-content/themes/specular/includes/view/blog/loop-index.php and comment out/remove the code on line 21, which has this:


$content = str_replace(']]>', ']]>', apply_filters('the_content', $content ));

​Or you can also wrap the above in a conditional:

if ( 'espresso_events' != get_post_type() ) {
    $content = str_replace(']]>', ']]>', apply_filters('the_content', $content ));
}

Ideally the Specular theme should be fixed. What the theme could do instead is add a filter to the_content, instead of overriding it entirely.

Hope that helps!


MetricsMedia

June 6, 2019 at 8:26 am

Thanks a lot, Josh, that helped quick and perfectly!

Viewing 2 reply threads

The support post ‘EE event template does not come up’ 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