Posted: July 22, 2014 at 4:39 pm
|
Hi! With the creation of an event there is the option to enter an off-site registration link URL. Now when the user clicks this event he will leave my site. I would like to have the off-site registration page opened in a blank screen. Should be easy enough but I can’t figure out where to do this… Furthermore, I’m very pleased with your plugin. Keep up the good work! |
|
Hi Dennis, Oddly enough this isn’t a setting. Currently the only way to do it is to make a file edit. Start by copying the following files /wp-content/plugins/event-espresso/templates/event_list_display.php over to /wp-content/uploads/espresso/templates Then edit /wp-content/uploads/espresso/templates/event_list_display.php Around line 44 it should show this code Replace it with this code Now what will happen is events with an external URL will use a new tab and ones that aren’t will just open as normal. Hope that helps! |
|
Hi Dean, Thanks for looking into it. The problem however still occurs! When clicking the event from the Upcoming Events widget or from the Events Calendar I get instantly redirected from my website to the off-site URL. Should the code be used in a different place? |
|
Ahhh I see, yes those are different parts of the plugin. Well the widget can be changed. Similar to the above, copy over the widget.php file edit: changed to pastebin as our code highlighter is being weird The calendar is a different matter. The changes wont survive an update and can only affect the tooltip not the blob on the calendar. /wp-content/plugins/espresso-calendar/espresso-calendar.php change the entire contents to the content here (it’s easier than trying to explain the changes) – http://pastebin.com/z7j9mzkb
|
|
Thanks again. The calendar works fine now! No problem that the changes won’t survive an update. The Upcoming Events widget had no effect however… I copied the wp-content/plugins/event-espresso/templates/widget.php to wp-content/uploads/espresso/templates/widget.php and replaced the code as you suggested. I also tried to edit the file directly but it didn’t matter. I’m using Event Espresso version 3.1.36.5.P |
|
Sorry, that was a typo on my part. I have updated the pastebin, but basically the if($externalURL != '' ) bit should read if($event->externalURL != '' ) |
|
That did the trick. Works like a charm! Thank you Dean! |
The support post ‘Off-site registration link to open in new window’ 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.