Support

Home Forums Event Espresso Premium Custom URL (NOT Custom Registration page) in Widgets

Custom URL (NOT Custom Registration page) in Widgets

Posted: June 18, 2013 at 2:08 am


Dieter Winckelmann

June 18, 2013 at 2:08 am

Hi

I would like to display either the Calendar Widget or the Upcoming Events Widget in my side bar.

However I want to set a custom URL for the event ***NOT A CUSTOM REGISTRATION PAGE*** once the user clicks on the event.

Here’s what I’m trying to do:

When the user clicks on the event they would like to attend I want to redirect them (to a URL of my choosing) to a “pre-registration page” in which I ask them to take an action (complete a survey or signup or take an action to receive a promo code etc) BEFORE they get to the actual registration page.

So I don’t want to set a Custom Registration page for the event – just change the URL to which the Events Calendar or Upcoming Events widget points.

Hope I’ve described that clearly enough.

 

WP 3.5.1 EE 3.1.33.2P


Dean

June 18, 2013 at 5:16 am

Hi,

That isnt really possible without some custom code, potentially a re-write of the widget.

As an alternative, have you considered a javascript pop up plugin, so a pop up appears on certain URLS?


Dieter Winckelmann

June 18, 2013 at 6:38 am

So there is nowhere in the widget that I can change the URL to something other than the default “Event-Registration” page?

I could work with that being be a static URL for now.

Any suggestions please?

 


Dean

June 18, 2013 at 6:44 am

Hi,

The widget is pretty much just a smaller version of the main calendar. The calendar itself pulls the event data out of the database and gets what it needs to display.

You could edit the calendar file itself, but we dont recommend nor support core file modifications. You would also need some way of passing over the correct url to that new page in order to then redirect the user to the registration page.

So in my mind it is a fairly complex modification.


Dieter Winckelmann

June 18, 2013 at 7:01 am

Hi Dean

Thanks – I just really wanted to have users go to a pre-registration page BEFORE going to the event-registration page.

I’m disappointed that its proving so difficult to do.


Josh

  • Support Staff

June 18, 2013 at 8:54 am

The upcoming events widget template could be customized to make this happen. You could use the meta key box that’s in the event editor to assign a custom URL for the event and customize the /templates/widget.php file to use the [EEMETA] shortcode instead of the event URL. If you want to point all the links in the widget to the same page, you wouldn’t need to use use the meta key fields, you could replace the code that links to the registration page with your custom URL.


Dieter Winckelmann

June 18, 2013 at 9:26 am

Hi Josh

Thanks to you and Dean for your patience.

For now I would be happy to use the “Upcoming Events” Widget and set all events to access the same URL.

Since I am a simple man, can you please explain to me exactly which file needs editing – and what to replace with the URL I want?

MANY thanks!


Josh

  • Support Staff

June 18, 2013 at 10:40 am

The template file for the upcoming events widget is in the Event Espresso plugins /templates directory and has the name widget.php.

The line you’ll edit is line 129. It’s the part that starts with a href=” that you can change to make it link elsewhere.

The support post ‘Custom URL (NOT Custom Registration page) in Widgets’ 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