Support

Home Forums Event Espresso Premium /events/ page

/events/ page

Posted: June 29, 2016 at 2:42 am


Dugald Peters

June 29, 2016 at 2:42 am

Hi,

Is there a quick way to get mydomain.com/events/ to point to my custom events listing page? I have trawled through your forums but can’t find a solution other than customising theme etc.

… am hoping there is a quick solution like in EE3

Many thanks in advance.


Tony

  • Support Staff

June 29, 2016 at 3:42 am

Hi Angus,

/events/ is the espresso_events post type ‘slug’ so it uses your themes arhcive.php template, to change that default output you need to create a custom template for your theme (archive-espresso_events.php) to output the listing however you prefer.

However the alternative is to change the slug to something else (Event Espresso -> Events -> Templates -> Events slug) and then use a page with the slug ‘events’ to output your custom event list.

It depends on what your trying to do really and how you creating your custom event list, are you using a shortcode?


Dugald Peters

June 29, 2016 at 5:00 am

Thanks for getting back so quick – I am just wanting to direct people to my custom events listing page (created using shortcodes) when clicking “Return to Events List” during the registration process.


Tony

  • Support Staff

June 29, 2016 at 5:12 am

Ohh that’s using MER, you can just change where that URL points to using a filter:

https://gist.github.com/joshfeck/e51ac13a3d9fd345ad40

Change return 'http://yoursite.com/calendar'; to return whichever URL you want to use for the button. Then add that function to either your child themes functions.php file or a Custom Function Plugin.


Dugald Peters

June 29, 2016 at 5:52 am

Great – just looking into filters – any tips on best way to add?


Lorenzo Orlando Caum

  • Support Staff

June 29, 2016 at 6:51 am

Hello,

It can be added to your site through a site specific plugin (https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/) or a child theme’s functions.php file.


Lorenzo


Dugald Peters

June 29, 2016 at 7:55 am

Very cool!

All sorted – thanks you guys… great support once again – love it!


Tony

  • Support Staff

June 29, 2016 at 8:56 am

I’m glad its working for you 🙂

Any further questions just let us know.

The support post ‘/events/ page’ 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