Support » Plugins » [Plugin: Cleaner Gallery] Disabling CSS in WP 2.9.2

  • I’ve been trying to disable the css by putting remove_action( 'wp_head', 'cleaner_gallery_css' ); in the functions file.

    I’m using the WP Header so it should work. I even switched to the default theme and added the same line to functions.php to make sure there wasn’t anything wrong with my theme. It was the same result, cleaner-gallery.css is still present.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Actually, I dug a little deeper in to the plugin and the WP Codex and found the that wp-deregister-style() works better. Using this line worked for me:


    Hi there

    I have the same problem and tried your method but get an error putting the code provided above in my functions.php. Could you help me out with the complete code and an idea where to put it?

    Thanks a lot

    thanks mikaelwehner worked great! 🙂

    @mmturner paste it before the ?> in your functions.php

    //Remove Cleaner Gallery CSS

    just noticed this way didn’t work any more (wp 3.0).

    Updated code:

    add_action( 'wp_print_styles', 'my_deregister_styles', 100 );
    function my_deregister_styles() {
    wp_deregister_style( 'cleaner-gallery' );

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Cleaner Gallery] Disabling CSS in WP 2.9.2’ is closed to new replies.