WordPress.org

Ready to get started?Download WordPress

Forums

WP-SWFObject
Way to disable script on certain pages? (1 post)

  1. CarolineElisa
    Member
    Posted 2 years ago #

    Something like this in functions.php for Theme Hybrid:

    add_action( 'wp_print_scripts', 'deregister_swfplayer', 100 );
    function deregister_swfplayer() {
        if ( !in_category( 'animation' )) {
    		wp_deregister_script( 'wp-swfobject' );
    	}
    }

    Thanks!

    http://wordpress.org/extend/plugins/wp-swfobject/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.