Really struggling with URL in the API

44 views
Skip to first unread message

Joe Gardham

unread,
Nov 10, 2015, 4:53:33 AM11/10/15
to Eventbrite API
Hi all,
I'm not a web expert by any means, but am feeling my way around as part of my job.
I've managed to install the eventbrite API in my site, and have it working pretty well.
The only barrier I have is that the URLs of the event title and 'Details' link, are linking to a non-existent page on my website, caused by an amalgamation of my domain name and the event id on the eventbrite site.
I would like the url to point to the event on the eventbrite site, but can't work out how to do this.
I have spoken to the owner of my template, who has given me some plain text to insert in the Footer Code, but that isn't working.

Webpage in question: amimb.org.uk/events/event-test
Current URL problem: http://amimb.org.uk/event-test/cinema-19261221833/
Desired URL solution: https://www.eventbrite.co.uk/e/cinema-tickets-19261221833

The template owner gave me the following code to insert:

<script>
jQuery('.page-id-2895 #main a').each(function(){
	jQuery(this).attr( 'href', jQuery(this).attr( 'href' ).replace( 'http://amimb.org.uk/event-test', 'https://www.eventbrite.co.uk/e' ) );
});
</script>

Any advice would be greatly appreciated - I've spent hours trying to work this out without having to ask for help, but have had to admit defeat!

Thanks, Joe


Reply all
Reply to author
Forward
0 new messages