Hi @madeirakate ,
Thank you for reaching out.
You may remove the Subscribe to Calendar links by following the guides in our Removing Calendar Links knowledgebase article.
Thanks for your response. I have tried all the various codes found in this article and others. None of them work for me. I have tried removing all codes and just removing a single code but no luck…
// Hide subscribe box on all event pages/views.
add_filter( ‘tec_views_v2_subscribe_links’,
function( $subscribe_links ) {
// When passed an empty array, the template will bail and not display.
return [];
},
100
);
OR
add_filter( ‘tec_views_v2_subscribe_links_gcal_single_url’, ‘__return_false’, 10 );
I am editing the functions.php file in the WP Magazine Plus theme – should I be looking elsewhere?
Kate
Hi @madeirakate ,
Thank you for your message, and I’m sorry to hear of the continued difficulties.
I’ve tested the following code myself with my testing environment, and I’ve confirmed that this code works in removing the “Subscribe to Calendar” button from the calendar views.
// Hide subscribe box on all event pages/views.
add_filter( ‘tec_views_v2_subscribe_links’, function( $subscribe_links ) {
// When passed an empty array, the template will bail and not display.
return [];
},
100 );
Kindly try using a Code Snippets plugin instead of placing the code in your theme’s functions.php file to isolate the situation.
Thanks. Have tried that in Code Snippet and it still doesn’t work… Tearing my hair out over this!
Hi @madeirakate ,
Thank you for your message.
Another alternative we have here is to hide the button through CSS. — Kindly try appending the CSS snippet below to your theme’s additional CSS section (Appearance -> Customize -> Additional CSS).
.tribe-events .tribe-events-l-container .tribe-events-c-subscribe-dropdown__container, .tribe-events-page-template .tribe-events-pg-template .tribe-events-single .tribe-events-c-subscribe-dropdown__container {
display: none !important;
}
Excellent! That worked – thank you so much for your help.
Plugin Support
Darian
(@d0153)
Hi @madeirakate
Thanks for your confirmation and I’m glad that it is now working.
If you have a minute, a great review from you would be amazing!
https://wordpress.org/support/plugin/the-events-calendar/reviews/