Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theeventscalendar/632a24421c22fcab9b3f to your computer and use it in GitHub Desktop.
Save theeventscalendar/632a24421c22fcab9b3f to your computer and use it in GitHub Desktop.
Change event or venue links in The Events Calendar to the relevant website URL
@jsaub
Copy link

jsaub commented Sep 16, 2015

I just tried this, putting the code at the very end of the functions.php file. I put it at the end because the instructions do not note where to put it. Immediately upon saving, I got the code:
Parse error: syntax error, unexpected '<' in /home/madelinefay1818/public_html/psychicawakeningsseattle/wp-content/themes/Divi/functions.php on line 8039

I'm using WordPress 4.3.1 running Divi theme Version: 2.5.3.

Anybody got any thoughts on how to make this work?

@cliffordp
Copy link

Don't include the initial <?php if you're adding it to your theme's functions.php file, since it's already at the top of that file.

@seedylewis
Copy link

Any ideas on how to get the links to open in a new window?

@w-biggs
Copy link

w-biggs commented Jan 15, 2019

This doesn't seem to work on the calendar view for some reason.

Edit: Seems like tribe_set_link_website isn't called on the calendar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment