Home › Forums › Calendar Products › Events Calendar PRO › Change the "Export iCal" Link
- This topic has 7 replies, 4 voices, and was last updated 8 years, 5 months ago by
Courtney.
-
AuthorPosts
-
April 23, 2016 at 6:16 am #1106257
Warwick Baptist Church
ParticipantI know this has got to be easy then I am making it but I am not seeing it anywhere in the forums. Right now I am trying to get it where I can export a year of events at a time. I saw where you can create a link here: https://gist.github.com/cliffordp/ab1f7c4d95723ee6f892, and change the text in the button (on the month view) here: https://gist.github.com/cliffordp/b0e5ece86040d9838f0 BUT I can not change the button’s link to the mysite/events/?ical=1&year-feed. I saw here: https://gist.github.com/cliffordp/0add8931e1c6422a7b4c where it use to be done however /wp-content/plugins/the-events-calendar/src/resources/js/tribe-events.min.js?ver=4.0.5 now overwrites it and I know NOTHING about js. I really want it where someone can go on the site and just download the .ics for all the events in one place. I would appreciate any help with this problem.
Travis
April 25, 2016 at 9:41 am #1106698Cliff
MemberHi Travis. I’m glad my previous snippets have been helpful thus far!
I see your page source has the Year link but the JS is overwriting it to be the Month link, just like the bug we’ve logged.
I’ll mark this ticket as Pending Fix, which means this thread should receive a reply once the applicable fix has been released. I cannot guarantee when it will be fixed as it’s in the development team’s hands now. They need to assign it, code it, test it, and schedule it for release. I apologize for this issue and appreciate your understanding and patience.
Until that fix is released, here’s some JS to override the rogue override 😉
https://gist.github.com/cliffordp/1d39d2f51b82c0077212472d498873dd
Please let me know how it goes for you.
April 25, 2016 at 6:15 pm #1106920Warwick Baptist Church
ParticipantCliff,
Was this suppose to be PHP or JS? I put it on the end of “the-events-calendar/resources/js/tribe-events.min.js” file and it gave me “http://warwickbaptist.org/events/?ical=1”. It was missing the “&year-feed”. Thanks in advance.
TravisApril 26, 2016 at 4:21 pm #1107431Cliff
MemberTravis, this is a PHP snippet that implements some jQuery code in your page.
Anyway, welcome to WordPress customizing!
Best practice for adding custom code (like to implement a PHP snippet to modify The Events Calendar) is to create a functionality plugin, unless it’s something specific to your theme, in which case best practice is to make sure you’re using a child theme, then add the customization to your child theme’s functions.php file.
I hope this information helps!
April 26, 2016 at 7:12 pm #1107513Warwick Baptist Church
ParticipantThanks a ton! Works like a champ! I’ll keep an eye out for the future fix.
April 26, 2016 at 10:55 pm #1107552Cliff
MemberSweet! Thanks for the update.
May 11, 2016 at 9:35 am #1113304Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help.November 20, 2017 at 1:35 pm #1387526Courtney
MemberWe released an update for this issue. Can you update your plugins (preferrably on a staging site) and see if that resolves the issue.
https://theeventscalendar.com/maintenance-release-week-13-november-2017/
Thanks
Courtney ? -
AuthorPosts
- The topic ‘Change the "Export iCal" Link’ is closed to new replies.
