Support

Home Forums Event Espresso Premium Events page with Razor theme issue

Events page with Razor theme issue

Posted: May 6, 2014 at 7:34 am


Donal

May 6, 2014 at 7:34 am

Hey there,

So I have another compatability issue with EE4 and the Razor theme from themeforest. I have notified the theme developer, but they are unlikely to issue a fix any time soon.
The issue is when I browse to the /events/ page, it looks just like a blog page. I do not see any of the event details like date (kinda important), etc. I was wondering if you had any ideas on how to resolve?
I really need this to launch.
See: http://www.irishnetworkboston.net/events/

Thanks a million.

donal


Tony

  • Support Staff

May 6, 2014 at 7:53 am

Hi Donal,

IF you go to Event Espresso -> General Settings. Templates Tab.

Can you check if ‘Display Datetimes’ is set to Yes?


Donal

May 6, 2014 at 8:50 am

Tony, I’m not seeing that setting. IT displays fine using the 2014 template.


Donal

May 6, 2014 at 8:55 am

Oops, was looking on wrong tab. Yes, Display datetimes is set to Yes.


Tony

  • Support Staff

May 7, 2014 at 7:44 am

Hi Donal,

In order for the theme to display the datetimes there you’ll need to include the code to do so.

With the theme and settings you are currently using this would be within the file ‘template-blog-style-1.php’ within the the themes folder.

Go down to line 139 and then under that add:

<?php espresso_get_template_part( 'content', 'espresso_events-datetimes' ); ?>

The code will look something like this: http://take.ms/QYjJP

The outcome of the Events page will be something like this: http://take.ms/kpT1k

Now unfortunately if you update the theme this modification will be removed. If you change your ‘blog style’ setting, you will be using a different template part, so this modification will not be used.

The best way to preserve modifications such as these would be to create a child theme, we have a some more information on theming EE4 here:

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

  • This reply was modified 9 years, 11 months ago by  Tony.


Donal

May 17, 2014 at 6:56 pm

Hi Tony.

THanks for that. I already ahve a child theme created, so just applied your change to that. Thanks!
Now, how do I update the /events/ layout to add stuff to the right column? I tried applying a custom page layout to Events under Appearance > Layouts > Custom Post Types > Events, but it does not seem to make a difference.


Donal

May 18, 2014 at 7:25 am

Ok, never mind on the page layout question, I got that working. So if i wanted to have /events go directly to a page so I have more control over it. Is that possible, and have the events slug to to that page?


Lorenzo Orlando Caum

  • Support Staff

May 18, 2014 at 9:52 pm

Hello,

The events list page (example.com/events/) is virtual and can’t be edited through WordPress pages.

However you can customize it by editing a template file:

https://eventespresso.com/topic/ee4-custom-events-listing-display/#post-84466

Another option is to create a new WordPress page (different slug than events) and then add the Espresso events shortcode to it:

https://eventespresso.com/topic/ee4-customize-event-list-page/#post-94616


Lorenzo

The support post ‘Events page with Razor theme issue’ 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