Dequeuing style
-
I’m trying to dequeue Fetch Tweets style for a custom template, to remove the extra HTTP request – but I’m having to guess the handle a bit. The code in include/template/FetchTweets_TenplatesLoader.php indicates that it’s creating the handle from the template:
wp_enqueue_style( "fetch-tweets-" . md5( $_aTemplate['sDirPath'] ) );
So I’m trying to dequeue the Plain template to test this (template is activated), with the following code:
function remove_unwanted_css(){ wp_dequeue_style('fetch-tweets-plain'); } add_action( 'wp_enqueue_scripts', 'remove_unwanted_css', 100 );
I’ve also tried wp_deregister_style.
Any help would be much appreciated. Thanks, Matt
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Dequeuing style’ is closed to new replies.