Home › Forums › Calendar Products › Events Calendar PRO › Remove Export Event
- This topic has 0 replies, 2 voices, and was last updated 8 years ago by
Wayne Davies.
-
AuthorPosts
-
April 4, 2018 at 2:22 pm #1496913
Wayne Davies
ParticipantTried all the advice and I still cannot remove the Export Events.
Why should this be open to abuse by freeloaders?
I spent a lot of money on an aggregator license so no export events should be a default choice for your paying customers!!!!!!!April 5, 2018 at 1:49 pm #1497971Patricia
MemberHey Wayne,
Thank you for reaching out to us!
I’m really sorry to hear that you are having problems to remove the “Export” Links from your Event Views.
You can completely remove these buttons by accessing your server via FTP and adding the following snippet in your theme’s functions.php file:
class Tribe__Events__Remove__Export__Links { public function __construct() { add_action( 'init', array( $this, 'single_event_links' ) ); add_action( 'init', array( $this, 'view_links' ) ); } public function single_event_links() { remove_action( 'tribe_events_single_event_after_the_content', array( $this->ical_provider(), 'single_event_links' ) ); } public function view_links() { remove_filter( 'tribe_events_after_footer', array( $this->ical_provider(), 'maybe_add_link' ) ); } protected function ical_provider() { return function_exists( 'tribe' ) ? tribe( 'tec.iCal' ) // Current : 'Tribe__Events__iCal'; // Legacy } } new Tribe__Events__Remove__Export__Links();If you prefer, it’s also possible to hide these buttons from month and list views via CSS, by adding the following in your theme’s style.css file:
a.tribe-events-ical.tribe-events-button { display: none !important; }I hope this helps! If you have any other questions in the meantime please feel free to let me know and I’d be happy to help as best I can!
Cheers,
Patricia
April 5, 2018 at 2:25 pm #1497990Wayne Davies
ParticipantI’ve already tried that (as already advised) and it killed the website.
Does this fix work with the updated plugin?
Wayne Davies
Owner YNE: Services | Web | Events
phone: 0333 335 0605
site: https://www.yneservices.co.uk http://www.yneservices.co.uk
email: mailto:[email protected] [email protected]
mailto:[email protected] . https://facebook.com/yneservices . https://twitter.com/yneservices .
https://www.servicefinderuk.co.uk/ Check out Service Finder UK
April 5, 2018 at 2:30 pm #1497993Wayne Davies
Participant.css has now worked, thanks for your help
Wayne Davies
Owner YNE: Services | Web | Events
phone: 0333 335 0605
site: https://www.yneservices.co.uk http://www.yneservices.co.uk
email: mailto:[email protected] [email protected]
mailto:[email protected] . https://facebook.com/yneservices . https://twitter.com/yneservices .
https://www.servicefinderuk.co.uk/ Check out Service Finder UK
April 5, 2018 at 2:43 pm #1497999Patricia
MemberHi Wayne,
This is just a quick follow up to let you know that I’ve crafted an extension based on the snippet shared before. Could you please download the zip file from here, install the extension as a plugin in your site and let me know if everything works as expected (your Export links are removed) after that?
Please note that this is an initial/unsupported version of the extension.
Thanks!
Patricia
April 5, 2018 at 2:53 pm #1498009Patricia
MemberHi Wayne,
I’m sorry, I didn’t receive your previous messages before sending my additional reply regarding the extension!
I’m glad to hear that the CSS helped you to remove the export links! If you decide to give the extension a try, please let me know 😉
Best Regards,
Patricia
April 27, 2018 at 9:35 am #1517968Support Droid
KeymasterHey 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 ‘Remove Export Event’ is closed to new replies.
