Posted: August 21, 2019 at 4:37 pm
I used the short code for the grid template on a page (https://newsite.csjthewell.org/spiritual-offerings/) and like how it looks. When someone adds an item to the cart and then clicks on Return to Events List it goes to page other than the one with the grid short code. Even if I choose the page with the grid short code in the settings it doesn’t display that way when a user clicks on Return to Event list. How can I get Return to Events List to use the page with the grid short code and have it look right? |
|
Hi there, To change the URL used by that button you can use a snippet like this: https://gist.github.com/joshfeck/e51ac13a3d9fd345ad40 Change it to return the full url for the page you want to use and then can add that to a custom functions plugin on your site, we have some documentation on creating one here: https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/ |
|
Thanks. Is the GitHub language the same as changing the slug in Event Espresso>Events>Templates>Event List Pages>Event Slug? If it is different and will make the page by the page with the grid template, do I create a php file with the language from Github? Do I need to create a plugin, too, to make it work? Sorry for all the questions but I’ve never had to create a plugin before. |
|
They are two different things. The setting for event slug allows you to change the slug of the event archives to something other than It’s recommended to create a plugin for adding code snippets, and we’ve outlined how to in this guide: https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/ |
|
No, that’s different.
Sorry but I don’t follow, can you rephrase this?
Yes, you’ll need to follow the steps in the link I gave you earlier to create a custom function plugin, that plugin can then hold all of your custom functions for the site. |
|
I used the PHP you recommended and it worked perfectly. Thanks! |
|
The support post ‘Event List Page (4)’ 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.