How can I remove iCal links
-
Hi,
How can I remove iCal importing links from Events and Mounth Calendar?
Very thanks
-
For Hide i-cal importer Icon , Need to remove the code >>>>>>>>>>>>>> echo $ical;
Just buttom of that line “tribe-events-ical tribe-events-button”Also for event details
remove this code echo ‘<div class=”tribe-events-cal-links”>’;
echo ‘+ ‘ . __( ‘Google Calendar’, ‘tribe-events-calendar-pro’ ) . ‘‘;
echo ‘+ ‘ . __( ‘iCal Import’, ‘tribe-events-calendar-pro’ ) . ‘‘;
echo ‘</div><!– .tribe-events-cal-links –>’;from events-calendar-pro/lib/tribe-ical.class.php
Just below this line “tribe-events-gcal tribe-events-button”
Very Thanks Malcolm
Could you please reply in which files i have to remove which code? Sorry, I’m new :/
…got it. All in “tribe-ical.class.php”
File is under
/wp-content/plugins/the-events-calendar/lib/tribe-ical.class.phpRemove this >>
echo ‘<div class=”tribe-events-cal-links”>’;
echo ‘+ ‘ . __( ‘Google Calendar’, ‘tribe-events-calendar-pro’ ) . ‘‘;
echo ‘+ ‘ . __( ‘iCal Import’, ‘tribe-events-calendar’ ) . ‘‘;
echo ‘</div><!– .tribe-events-cal-links –>’;$ical = ‘+ ‘ . __( ‘iCal Import’, ‘tribe-events-calendar’ ) . ‘ ‘ . $modifier . ‘‘;
echo $ical;Please see the tutorial Leah linked. Editing core files is ALWAYS a bad idea.
Bad but useful when the plugin tutorial doesn’t work. I started out liking this plugin but now not happy with how I can’t deliver the content applicable to me.
Hi svsdnb,
Did the tutorial not work for you? If so we’d like to know so we can fix it!
Thanks,
LeahI put
remove_filter('tribe_events_after_footer', array('TribeiCal', 'maybe_add_link'), 10, 1);in the functions.php file and the iCal button was still there.
Howdy sysdnb,
I believe this is because you are look at the wrong tutorial. Here is the tut for removing iCal import on the Single events page in The Events Calendar.
Note: Make sure you are on the latest version of TEC before following this tutorial.
Where as the tutorial that Leah linked removes it from the other views.
That is a bit confusing. I just added a note to both tutorials to better explain the difference and cross linked them. Hopefully that will help others like you. Cheers!
– Brook
I have tried to follow this tutorial http://tri.be/support/documentation/removing-the-ical-import-link/ but the buttons are still there.
Locate: /wp-content/plugins/the-events-calendar/lib/tribe-ical.class.php
Open tribe.ical.class.php file.
Find the words: echo ‘<div class=”tribe-events-cal-links”>’; by pressing Ctrl + f on your keyboard.
Comment out or delete this on lines 76-79 to remove the Add to Google Calendar and ICAL Export buttons:
//echo ‘+ ‘ . __( ‘Google Calendar’, ‘tribe-events-calendar’ ) . ‘‘;
//echo ‘+ ‘ . __( ‘iCal Export’, ‘tribe-events-calendar’ ) . ‘‘;
Then scroll down to lines 121-123 and comment out or delete this code. This should delete the RHS footer button on your Events Calendar (Month).
//$text = apply_filters( ‘tribe_events_ical_export_text’, __( ‘Export’, ‘tribe-events-calendar’ ) . ‘ ‘ . $modifier );
//$title = __( ‘Use this to share calendar data with Google Calendar, Apple iCal and other compatible apps’, ‘tribe-events-calendar’ );
//$ical = ‘+ ‘ . $text . ‘‘;
Save the file on your FTP program. See if the buttons are removed or not. Hope that helps.
Thanks darrensue! That original snippet is a little outdated now (since Brook posted it 5 months ago) but we are working on an updated one for people to use.
Best,
Leahhello leahkoerper ,
I have display events on my front end and when click on the find out more it redirects the details page , till now its fine ; But i want to know how can i open that event featured image on a lightbox view when the event on his details page .
Please help me ..
thanks
Micheal
The topic ‘How can I remove iCal links’ is closed to new replies.