WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: Viper's Video Quicktags] Removing scripts and styles (3 posts)

  1. Pedro Candeias
    Member
    Posted 4 years ago #

    How can i remove the scripts and styles inserted in the head section.
    I want them to only appear in posts.
    Already "deregister" two of them:
    wp_deregister_script( 'swfobject' );
    wp_deregister_script( 'qtobject' );

    But canĀ“t find the "enqueue" for the ones that are written not linked.
    (var vvqflashvars = {};... and .vvqbox { display: yada yada).

    Thanks

  2. That's because it's not a stylesheet file. I have a function outputting that dynamic CSS directly.

    add_action( 'init', 'nervo_remove_vvq', 11 );
    
    function nervo_remove_vvq()
    	global $VipersVideoQuicktags;
    	remove_action( 'wp_head', array(&$VipersVideoQuicktags, 'Head') );
    }

    Drop that in your theme's functions.php file.

  3. Pedro Candeias
    Member
    Posted 4 years ago #

    Great. thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic