Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #354114

    Gday Kriesi forum,

    The Enfold v3 upgrade has a new stylesheet that adds to and overrides the Events Calendar Pro plugin styles.

    I’d like to disable this stylesheet, and have tried unsuccessfully with:

    function dequeue_css() {
      wp_dequeue_style('event-mod');
      wp_deregister_style('event-mod');
    }
    add_action('wp_enqueue_style','dequeue_css');
    add_action('wp_register_style','dequeue_css');

    Does anyone know a way I can do this? The style sheet is called event-mod.css

    cheers

    Darryl

    #354348

    Hey itchybrain!

    Try adding this to the bottom of your functions.php file.

     function avia_events_register_assets() {  }
    

    Regards,
    Elliott

    #354562

    Thanks so much Elliot, that worked…much appreciated.
    cheers
    Darryl

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Function to dequeue the new event-mod.css file’ is closed to new replies.