Support

Home Forums Event Espresso Premium Event Location/Address customising

Event Location/Address customising

Posted: October 25, 2016 at 1:11 am


jbbruning

October 25, 2016 at 1:11 am

Hi there,

I’m looking to create a slimmed down version of upcoming events on my website homepage (this will be in addition to the main events page).

As i’m just finding my way around Event Espresso i’m wondering the best way to create a list of events. I’m using the [ESPRESSO_EVENTS] shortcode to drop in my events, but there is way too much content for the homepage and so i need to reduce down significantly to Event Image/Event Date/Location/Detail/Button to find out more.

Is there a method to creating a cut-down version, or would i need to hide content with CSS (quick to do, but not necessarily the lightest approach). As i’m dropping this list into an existing page, creating a page template isn’t necessarily going to help.

My questions therefore are;

1. What’s the best way to edit the events list. Use CSS to hide unwanted content, or do you recommend a different method?

2. How does the grid view template add-on work? Is this a page template or a shortcode i can drop in to an existing page? If the later, is flexible enough for me to add in venue content?

Thanks for your help.

Just trying to get my head around how Event Esspresso is structured and how much i can customise or build on existing shortcode.

Many thanks.


Josh

  • Support Staff

October 25, 2016 at 11:11 am

Hi there,

1. What’s the best way to edit the events list. Use CSS to hide unwanted content, or do you recommend a different method?

You can use the Event List Pages settings in Event Espresso > Events > Templates to control how the events list is displayed.

2. How does the grid view template add-on work? Is this a page template or a shortcode i can drop in to an existing page?

It’s a short code you can put onto a post or page.

If the later, is flexible enough for me to add in venue content?

It’s flexible in that you can copy the add-on’s template file to your active WordPress theme, and edit the PHP there. You’ll need a working knowledge of PHP to be able to make edits to it.


jbbruning

October 25, 2016 at 9:17 pm

Hi Josh

Thanks for the quick reply. I’m actually looking for more granular editing and more specifically the ability to change content (e.g. the address block) for my homepage view, which would show a very trimmed down version of the address to just the city, and then full address on other pages where the shortcode is used, and on the single event page.

Is there developer documentation for available hooks & filters for me to use as a base, or is it easier to create a custom template (within public/Espresso_Arabica_2014)?

What’s your advice on the best way to do this?

Thanks again.


Tony

  • Support Staff

October 26, 2016 at 6:20 am

Hi there,

I’m actually looking for more granular editing and more specifically the ability to change content (e.g. the address block) for my homepage view

You can do that when using the Grid template as you have full control over the custom template, you can add, edit or remove any details you prefer and then only load that custom template for the instance of the shortcode you are using on the homepage.

If you comfortable with PHP you could just create your own event list for use on the home page template (or even create your own shortcode to do the same thing), we have an example of building out a simple event list here:

https://gist.github.com/joshfeck/6e33532c37a123bbf532

Is there developer documentation for available hooks & filters for me to use as a base, or is it easier to create a custom template (within public/Espresso_Arabica_2014)?

Please don’t add templates within the plugin, any modifications made to the plugins files will be lost on each update to Event Espresso (modifying core files also prevents us from providing support).

Most (if not all) of the templates used to output details on the front end will check for a template of the same name within your themes root directory and use that in its place. If you are modifying the template files from within EE copy the template you want to edit and place that within your theme (preferably a child theme), then edit the template there.

What’s your advice on the best way to do this?

It really depends on how exactly you want to output the details, you’ve mentioned the ESPRESSO_EVENTS output and also the Grid templates, both can be modified if needed or again you can use your own custom function to output the details.

Which output do you prefer to use?


jbbruning

October 26, 2016 at 6:38 am

Hi Tony,

Thanks for the detailed response. I’ll take a look at Josh’s example, and the grid template add-on seems a good base to build from.

Yep, i have the child theme setup so anything i customise will be added to that.

You’ve all been awesome in your support – really impressed. Thanks again for providing detail around the options.


Tony

  • Support Staff

October 26, 2016 at 7:10 am

You’re most welcome.

If you do run into any problems just let us know, we can’t provide custom code but we can help point you in the right direction if we can.


jbbruning

October 26, 2016 at 5:01 pm

Hi Tony,

I found this video on customising template files.

https://www.youtube.com/watch?v=mGw2jGZ9kr8

Is this still the correct/recommended approach? I have to say it’s one of the most convoluted videos i’ve ever watched. The first 22mins are completely pointless and wondering if copying the entire arabica theme folder is still correct, as it seems excessive and i wont get any theme template updates from hereon.

I’d suggest pulling the video and re-making it (in 5 mins) as it’s an official EE video and it doesn’t do you any favours at all. That’s 30 minutes of my life i’ll never get back, haha.


Josh

  • Support Staff

October 26, 2016 at 7:19 pm

I’m sorry you didn’t like the video. Copying the entire folder would not be correct unless you were going to modify every template file, and the video should have made that clear.

The support post ‘Event Location/Address customising’ 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