WordPress.org

Forums

Events Manager
[resolved] dequeue style (3 posts)

  1. publicradio
    Member
    Posted 2 years ago #

    I am trying to dequeue the css for the front end of this plugin. I have tried pulling the enqueue line from events-manager.php but it doesn't work:

    wp_dequeue_style('events-manager', plugins_url('includes/css/events_manager.css',__FILE__));

    I also tried removing the variables and using this line:

    wp_dequeue_style('events-manager', '/wp-content/plugins/events-manager/includes/css/events_manager.css');

    But neither will disable events_manager.css. How do I do this?

    http://wordpress.org/extend/plugins/events-manager/

  2. agelonwl
    Member
    Posted 2 years ago #

    maybe you can try something like this

    function my_em_remove_css(){
    	wp_dequeue_style('events-manager', plugins_url('includes/css/events_manager.css',__FILE__));
    }
    add_action('init','my_em_remove_css');

    or try settings at Events > Settings > General > Performance Optimization

  3. publicradio
    Member
    Posted 1 year ago #

    The function didn't work, but the settings totally worked. Thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags