Support

Home Forums Event Espresso Premium Event List Page (4)

Event List Page (4)

Posted: August 21, 2019 at 4:37 pm


mkreik

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?

  • This topic was modified 4 years, 8 months ago by  Josh.
  • This topic was modified 4 years, 1 month ago by  Garth.


Tony

  • Support Staff

August 22, 2019 at 2:02 am

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/


mkreik

August 22, 2019 at 12:10 pm

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.


Josh

  • Support Staff

August 22, 2019 at 12:18 pm


Is the GitHub language the same as changing the slug in Event Espresso>Events>Templates>Event List Pages>Event Slug?

They are two different things. The setting for event slug allows you to change the slug of the event archives to something other than events. For example you could change it to be classes.

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/


Tony

  • Support Staff

August 22, 2019 at 12:20 pm

Is the GitHub language the same as changing the slug in Event Espresso>Events>Templates>Event List Pages>Event Slug?

No, that’s different.

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?

Sorry but I don’t follow, can you rephrase this?

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.

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.


mkreik

August 22, 2019 at 12:45 pm

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.

Event Espresso