Posted: 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. |
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? |
|
|
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. |
Ohh that’s using MER, you can just change where that URL points to using a filter: https://gist.github.com/joshfeck/e51ac13a3d9fd345ad40 Change |
|
|
Great – just looking into filters – any tips on best way to add? |
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. — |
|
|
Very cool! All sorted – thanks you guys… great support once again – love it! |
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.