How do I deregister widget-calendar-full.css?

Home Forums Calendar Products Events Calendar PRO How do I deregister widget-calendar-full.css?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #970971
    Gareth
    Participant

    I would like to remove the widget-calendar-full.css file from loading. What value do I need in my functions.php file for wp_deregister_style( ‘??’ )? I’ve tried ‘widget-calendar-full’, ‘tribe_events-widget-calendar-pro’, tribe_events-widget-calendar-pro-style-css’, ‘tribe_mini_calendar_widget’ with no luck.

    Thanks.

    #971182
    Nico
    Member

    Hi Garreth,

    Thanks for hitting the forums!

    This snippet should do the trick:


    add_action( 'tribe_pre_get_template_part_pro/widgets/mini-calendar-widget', function() {
    wp_dequeue_style( 'widget-calendar-pro-style' );
    } );

    Let me know if that works for you,
    Best,
    Nico

    #972123
    Gareth
    Participant

    Thanks Nico, unfortunately that snippet hasn’t altered anything, it’s still loading widget-calendar-full.css

    #972792
    Nico
    Member

    Hey Gareth,

    Sorry for the delay in my reply, I was testing the code provided with mini-calendar widget but just realized, the style it’s being included in your site by event-list widget. My bad. I’ll get back to you tomorrow morning!

    Thanks for your patience,
    Nico

    #973142
    Nico
    Member

    Garreth,

    Thanks for your patience on this. Here’s the updated code for the ‘Event List’ widget:


    add_action( 'wp_print_styles', function(){ wp_dequeue_style( 'widget-calendar-pro-style' ); } );

    Please let me know if this works for you,
    Have a great Friday,
    Nico

    #986051
    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 6 posts - 1 through 6 (of 6 total)
  • The topic ‘How do I deregister widget-calendar-full.css?’ is closed to new replies.