• Resolved madeirakate

    (@madeirakate)


    I want to remove the Subscribe to Calendar link from all events views… I have found several examples of code on the forum but none of them work for me. I am using the WP Magazine Plus theme, with Events Calendar 6.7.0 (free version).

    Any suggestions??

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support tristan083

    (@tristan083)

    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.

    Thread Starter madeirakate

    (@madeirakate)

    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

    Plugin Support tristan083

    (@tristan083)

    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.

    Thread Starter madeirakate

    (@madeirakate)

    Thanks. Have tried that in Code Snippet and it still doesn’t work… Tearing my hair out over this!

    Plugin Support tristan083

    (@tristan083)

    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;
    }
    Thread Starter madeirakate

    (@madeirakate)

    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/

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Subscribe button’ is closed to new replies.