Remove iCal Import

Home Forums Calendar Products Events Calendar PRO Remove iCal Import

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #54451
    melrichban
    Participant

    I 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???

    #54800
    Jonah
    Participant

    Hi melrichban,

    Try this:

    /*-----------------------------------------------------------------------------------*/
    /* Remove iCal Link on Views
    /*-----------------------------------------------------------------------------------*/
    remove_filter( 'tribe_events_after_footer', array( 'TribeiCal', 'maybe_add_link' ), 10, 1 );

    #54880
    melrichban
    Participant

    Hi 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…

    #54960
    Leah
    Member

    Hey 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.

    #55153
    ellaearth
    Participant

    @melrichban
    Add the code above to your functions.php file. It worked for me.

    #55167
    ellaearth
    Participant

    Hey 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 🙂

    #55199
    Jonah
    Participant

    Hi ellaearth,

    So what views are you not looking to remove it in?

    – Jonah

    #55403
    ellaearth
    Participant

    Hey 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.

    #55511
    Jonah
    Participant

    Hi 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,
    Jonah

    #55527
    melrichban
    Participant

    Thanks Jonah and ellaearth for your help! That worked for me 🙂

    #55883
    Jonah
    Participant

    Glad to hear it melrichban!

    #238062
    antoninplusmargaux
    Participant

    Hey Jonah, sorry for digging this post ! It seems that you fix is not working with the new versions. Do you have a tip ?

    #983343
    Support Droid
    Keymaster

    This 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.

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Remove iCal Import’ is closed to new replies.