I know this is not pertaining to my ICS Calendar plugin but I got a notification about your post from a term match.
What are you hoping to have the .ics files do in your site? How are you presenting them to users?
WordPress doesn’t have any built-in support for .ics files, so uploading them to your Media Library will not give you a way to display a calendar. (Actually my plugin does come in handy there, but I’m not here just to shill for it.) If you want to just make the files downloadable, you could put a link to them in your page content.
However… if your goal is to have users subscribe to your calendar and automatically get updates with new events, you are not going to want to have them download an .ics file from your Media Library. That’s a static file that won’t receive any updates. You’d need to share the direct link to the .ics feed from your source calendar (Google Calendar, Office 365, etc.).
If it’s just a one-off event you want people to be able to add to their own calendars (with no future updates), then having them download the .ics file would work. They’d have to download it and then open it, which will kick them over to whatever calendar software they have configured on their computer/device and it will add the event.
Yeah, I’m just wanting them to be able to download the file. Our event is a conference with multiple sessions, so each session has it’s own .ics file so people can just add the ones they want to their calendar. I also have a file that contains all of the sessions in a single calendar that can be added all at once.
I have the “All Sessions” file set up as a button that links to the Media Library file, while each individual session has a link to that session’s Media Library file. Neither of these options work properly. Clicking the link or button does nothing.
After some additional testing, I determined that copying the URL of the file directly into my browser works fine. Which just doesn’t make any sense to me. It’s exactly the same URL, but for whatever reason the links and buttons on the page don’t work.
Weird… would it be possible to get the URL of the page you’ve got these download links on? I’m curious to see if I can figure out what’s happening.
Sure! More plugging for our conference! 😉 TechAccess OK 2023 Sessions
I forgot to mention that I’m using Chrome, and my co-worker got the links to work on Firefox, so this might just be a Chrome issue. But it’s hard to tell since I can get the direct URL to work.
Thanks… so the .ics links you’re referring to are the ones like “Add Mike’s session to calendar (.ics)”, correct?
I tried those in Safari and they worked as expected for me. Clicking them downloaded the .ics file, and opening the .ics file brought up my Mac Calendar app to add the event.
Then I tried them in Chrome, and… nothing. In Edge, the download seemed like it was starting, and then… nothing.
I realized at that point what the issue is. Your links to these files are http:// but they need to be https:// — Chrome, Edge and some other browsers have increased security so they won’t let you download http:// (non-secure) files from an https:// (secure) site.
You. Are. A. Wizard.
That totally fixed it. Thank you so much!