WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. mikaelwehner
    Member
    Posted 4 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.

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

  2. mikaelwehner
    Member
    Posted 4 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:

    wp_deregister_style("cleaner-gallery");

  3. mmturner
    Member
    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
    Turner

  4. tnk
    Member
    Posted 4 years ago #

    thanks mikaelwehner worked great! :)

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

    //Remove Cleaner Gallery CSS
    wp_deregister_style("cleaner-gallery");
    
    ?>
  5. tnk
    Member
    Posted 3 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