Home › Forums › Calendar Products › Events Calendar PRO › Remove iCal Import
- This topic has 12 replies, 6 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
July 10, 2013 at 11:09 pm #54451
melrichban
ParticipantI have removed the iCal import button through CSS with the simple, display: none; fix but it’s not taking across all of the views. Default view is photo, however, when I toggle to month view, it still displays. I can’t seem to find where else I would need to modify the CSS to display: none;
Is there just a simple way to remove the ical link altogether? I tried to locate the grid view but I think it was removed with the 3.0.1 version of Events Calendar PRO???
July 12, 2013 at 11:21 am #54800Jonah
ParticipantHi melrichban,
Try this:
/*-----------------------------------------------------------------------------------*/
/* Remove iCal Link on Views
/*-----------------------------------------------------------------------------------*/
remove_filter( 'tribe_events_after_footer', array( 'TribeiCal', 'maybe_add_link' ), 10, 1 );
July 12, 2013 at 3:19 pm #54880melrichban
ParticipantHi Jonah,
Thanks for that. Which file should I insert this into? The month view does not appear to be a file in /plugins/events-calendar-pro/views…
July 12, 2013 at 7:10 pm #54960Leah
MemberHey melrichban, I just wanted to let you know that we don’t do support on the weekends, but Jonah will be back in touch as soon as possible.
July 15, 2013 at 4:32 am #55153ellaearth
Participant@melrichban
Add the code above to your functions.php file. It worked for me.July 15, 2013 at 5:41 am #55167ellaearth
ParticipantHey Jonah, your code removed it generally (for me but I’m not looking at ALL the views) except on the actual event page itself. Hope you have some more code 🙂
July 15, 2013 at 8:26 am #55199Jonah
ParticipantHi ellaearth,
So what views are you not looking to remove it in?
– Jonah
July 16, 2013 at 7:31 am #55403ellaearth
ParticipantHey Jonah, I would like it removed from everywhere. Your code removed it from the pages I was looking at except for on a single event page. I would like to remove it from there also.
July 16, 2013 at 12:49 pm #55511Jonah
ParticipantHi ellaearth,
I understand now. To hide this on single events, just add this to your theme’s style.css:
.tribe-events-ical {
display: none;
}
Cheers,
JonahJuly 16, 2013 at 1:38 pm #55527melrichban
ParticipantThanks Jonah and ellaearth for your help! That worked for me 🙂
July 18, 2013 at 9:28 am #55883Jonah
ParticipantGlad to hear it melrichban!
June 20, 2014 at 6:35 am #238062antoninplusmargaux
ParticipantHey Jonah, sorry for digging this post ! It seems that you fix is not working with the new versions. Do you have a tip ?
July 7, 2015 at 6:30 am #983343Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Remove iCal Import’ is closed to new replies.
