Change the "Export iCal" Link

Home Forums Calendar Products Events Calendar PRO Change the "Export iCal" Link

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1106257

    I 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

    #1106698
    Cliff
    Member

    Hi 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.

    #1106920

    Cliff,
    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.
    Travis

    #1107431
    Cliff
    Member

    Travis, 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!

    #1107513

    Thanks a ton! Works like a champ! I’ll keep an eye out for the future fix.

    #1107552
    Cliff
    Member

    Sweet! Thanks for the update.

    #1113304
    Support Droid
    Keymaster

    This 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.

    #1387526
    Courtney
    Member

    We 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 ?

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Change the "Export iCal" Link’ is closed to new replies.