WordPress.org

Support

Support » Plugins and Hacks » All-in-One Event Calendar » [Resolved] wp_deregister_style not working with All in One Event Calendar

[Resolved] wp_deregister_style not working with All in One Event Calendar

  • depiction

    @depiction

    All in One Event Calendar adds 2 CSS files to every page, even page that don’t have a calendar on them.

    I’m trying to deregister the scripts then manually add them to my calendar page.

    I found the handles in class-ai1ec-calendar-controller.php then added the following to my theme’s functions file, but both scripts are still appearing in the header of all pages. How do I remove them?

    function my_deregister_javascript() {
    		wp_deregister_style('ai1ec-general');
    		wp_deregister_style('ai1ec-event');
    	}
    
    	add_action( 'wp_print_scripts', 'my_deregister_javascript', 100 );

    http://wordpress.org/extend/plugins/all-in-one-event-calendar/

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] wp_deregister_style not working with All in One Event Calendar’ is closed to new replies.
Skip to toolbar