Support

Home Forums Event Espresso Premium Changing the default 'Return to Events List' buttons' link

Changing the default 'Return to Events List' buttons' link

Posted: January 14, 2016 at 11:47 pm

Viewing 3 reply threads


David Haworth

January 14, 2016 at 11:47 pm

Here is the system information
WordPress Version: 4.4.1
PHP Version: 5.4.45
MySQL Version: 5.5.5
Event Espresso Version: 4.8.27.p
WordPress Address (URL): http://www.matrixatmelbourne.org.au/wp_Matrix2016
Site address (URL): http://www.matrixatmelbourne.org.au

Related Plugin
Event Espresso โ€“ MER โ€“ Multi Event Registration (EE 4.7.0+)
PluginURI http://www.eventespresso.com
Version 2.0.7.p

Hi would like to change the default link for all the ‘Return to events list’ buttons. Currently the button links to http://www.matrixatmelbourne.org.au/events/.

Whilst the page does list the events we have customised the look and feel for our other events listings somewhat see: http://www.matrixatmelbourne.org.au/matrix-events/#post-286 or http://www.matrixatmelbourne.org.au/programs/#post-237.

Note: The formatting of the date and time is correct and the ‘View event’ button display’s on our custom pages but not on longer on the /events/ page. In addition, to make Multiple [Expresso_Events] shortcodes display the correct data with in widgets (see https://eventespresso.com/topic/multiple-expresso_events-shortcode-issue/), a [Expresso_Events] shortcode has to exist in the main page area which we cannot add into the /event/ as it doesn’t exist as a page.

Would someone be able to help us to change the link for this button so that when it displays it links to http://www.matrixatmelbourne.org.au/matrix-events/ ?


Tony

  • Support Staff

January 15, 2016 at 1:36 am

Hi David,

We have a filter for that link meaning you can use the function here:

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

To change the link to whatever you prefer. In this case it would be something like this:

function ee_mer_change_event_list_url(){
	return 'http://www.matrixatmelbourne.org.au/matrix-events/';
}

add_filter( 'FHEE__EED_Multi_Event_Registration__set_definitions__events_list_url', 'ee_mer_change_event_list_url' );

You can add that to your child themes functions.php file or use a Site Specific Plugin.


David Haworth

January 17, 2016 at 4:17 pm

Hi,

That worked brilliantly, thank you so much.


Tony

  • Support Staff

January 18, 2016 at 6:51 am

You’re most welcome, David ๐Ÿ™‚

Viewing 3 reply threads

The support post ‘Changing the default 'Return to Events List' buttons' link’ 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