Support

Home Forums Event Espresso Premium Disable iCal Add to Calendar

Disable iCal Add to Calendar

Posted: September 25, 2023 at 9:52 pm


ixexotics

September 25, 2023 at 9:52 pm

Is there an easy way to simply remove the add to ical calendar function or button? Tried the following CSS in multiple places on the site but it still remains.

ee-ical-sbmt {
display: none;
}


Rio

  • Support Staff

September 26, 2023 at 12:34 am

You can go to your appearance -> Customize -> Additional CSS then modify the code you entered into this.

input.ee-ical-sbmt {
display: none;
}

let me know if that works.

thanks


Tony

  • Support Staff

September 26, 2023 at 3:19 am

Hi there,

You can remove it (rather than hide it) using a snippet like this:

https://gist.github.com/joshfeck/1bc3731cd1c468916c7f

You can add that to a custom functions plugin and we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/


ixexotics

September 26, 2023 at 9:03 am

Thanks Rio, that code didn’t change anything though. Icon is still present.


Tony

  • Support Staff

September 26, 2023 at 9:37 am

Can you link me to the page so I can take a look?


ixexotics

September 26, 2023 at 9:43 am

https://lamborghiniclubhouston.com/events/exclusive-gullo-automobile-museum-tour/


Tony

  • Support Staff

September 26, 2023 at 1:32 pm

You currently have that style wihtin a media query or mobile, this is what is added to the page:

@media (max-width: 640px)
input.ee-ical-sbmt {
    display: none;
}

So anything bigger than 640px wide doesn’t have that rule.

Its actually from broken CSS, in Appearance -> Customize -> Additional CSS

Where you have this:

input.ee-ical-sbmt {
display: none;
}

Add a } right before it, you also don’t need the ‘input’` part, so you can change the above to be:

}

.ee-ical-sbmt {
display: none;
}

The } at the top ‘closes’ the media query so your style applies to all screen sizes.

The support post ‘Disable iCal Add to Calendar’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso