Home › Forums › Calendar Products › Events Calendar PRO › Removing “Export” Links from Event Views
- This topic has 7 replies, 4 voices, and was last updated 7 years, 2 months ago by screenrage.
-
AuthorPosts
-
January 11, 2017 at 6:56 pm #1217117screenrageParticipant
Hi,
I’ve tried few of the snippets posted in 2016 and 2015 in these forums to disable event exports from my website but none are working, the Export Events function is still there and someone can just come in and download all the events I painstakingly collected and entered.
The “unsupported” plugin to turn off the Export functionality also does nothing.
So what is the “current, as of today” method of disabling all event exports across all views? Can we have a solution that is version proof?
thanks
jJanuary 12, 2017 at 11:43 am #1217594Geoff B.MemberGood afternoon Jake and welcome back!
Thank you for reaching out to us.
I would love to help you with this topic.There are 3 ways you could tackle this:
- Making a template customization for each view where you remove the export link call. You might want to read our Themer’s guide to get a sense of how that works.
- Use CSS to hide the buttons
- Use the following snippet in your theme’s functions.php: https://gist.github.com/GeoffEW/b8f0bb5fc2b8510c6ad4f0b60fcf3fb9
Let me know if that helps.
Have a great day!
Geoff B.
January 13, 2017 at 7:36 am #1218061screenrageParticipantHi,
Option 3 seems to be a good solution but it does not work… The reason why I prefer this option is that it would disable the function not just hide the buttons.
That is what I need.
help?!
jJanuary 13, 2017 at 12:46 pm #1218301Geoff B.MemberGood afternoon Jake,
You are right! My apologies, this snippet is limited to the single day view.
We actually have a better solution! https://theeventscalendar.com/knowledgebase/removing-export-links-event-views/
You can also try adding the following CSS rule to your style.css file or in your Custom CSS metabox for now:
.tribe-events-ical, #tribe-events .tribe-events-ical {display: none !important}
Best regards,
Geoff B.
January 13, 2017 at 2:56 pm #1218419screenrageParticipantAs I stated in my original message this plugin does not work with the latest version of The Events Calendar. I installed it, ran it and it did nothing to disable the exporting.
Will adding the above to my CSS disable the functionality or just hide the buttons? I need to completely TURN OFF the ability to export not just hide parts of it.
thanks
January 17, 2017 at 12:33 am #1219493Geoff B.MemberGood evening Jake,
Thank you for writing back.
I did not realize you had tried this plugin specifically.I just reported the plugin as broken. It might take a moment, but it will get fixed.
In the meantime, since the CSS only hides the buttons, your best bet is the template customization.
It’s really not as complex as it sounds:
- You create a /tribe-events/ folder in your WordPress theme.
- You choose the views you want to change ( i.e.: list or month )
- Make a copy of it and put it in the correct path in the /tribe-events/ folder)
- Look for the following
<?php do_action( 'tribe_events_after_footer' ) ?>
- Remove that last line from the view
You should be good to go.
Let me know how that goes.
Best regards,
Geoff B.February 8, 2017 at 8:35 am #1231319Support DroidKeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Removing “Export” Links from Event Views’ is closed to new replies.