• 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.

    http://wordpress.org/extend/plugins/cleaner-gallery/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter mikaelwehner

    (@mikaelwehner)

    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:

    wp_deregister_style("cleaner-gallery");

    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
    Turner

    thanks mikaelwehner worked great! 🙂

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

    //Remove Cleaner Gallery CSS
    wp_deregister_style("cleaner-gallery");
    
    ?>

    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.