Ready to get started?Download WordPress


[Plugin: Cleaner Gallery] Disabling CSS in WP 2.9.2 (5 posts)

  1. mikaelwehner
    Posted 5 years ago #

    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.


  2. mikaelwehner
    Posted 5 years ago #

    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:


  3. mmturner
    Posted 4 years ago #

    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

  4. tnk
    Posted 4 years ago #

    thanks mikaelwehner worked great! :)

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

    //Remove Cleaner Gallery CSS
  5. tnk
    Posted 4 years ago #

    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' );

Topic Closed

This topic has been closed to new replies.

About this Topic