There’s doesn’t seem to be a solution to actually removing the “subscribe to calendar” button entirely however. How can we remove that?
Thanks y’all for answering back, and I apologize for not responding quicker, I did not get notifications about responses.
I have read the articles referenced. If I am reading them correctly, there is no way to TOTALLY remove the “subscribe to calendar” button from everywhere. This is a show stopper for me, because I don’t want to put in the hard work of listing events just to have other folks harvest the listings and auto populate their calendars.
I am using version 5.14.0.3 of the events calendar.
Elementor is my page builder.
Enfold is my theme.
I agree with @unclebob1zt, there should be an option to turn off subscribe to calendar. Hiding the button with CSS, which I read is what others are doing, is not the solution. Events can still be harvested.
Here’s a snippet that will remove the “subscribe to calendar” dropdown from appearing on the main calendar page:
https://gist.github.com/skyshab/bc1944aee9c482bde98213cb242caa43
Just add that to your child theme’s functions.php file, or to a functionality plugin.
Hope that helps!
Thanks Sky Shabatura! I will check it out.
@skyshab This only works on the Month and List views but not the “Default” view that the new Cal design (V2) has added. So if you have Month view as default then it still shows unless you link to the events/month. Very odd.
// Remove subscribe to calendar dropdown from main calendar page
add_filter( ‘tribe_template_html:events/v2/components/subscribe-links/list’, ‘__return_false’ );