Replies: 0
Hi, this code for excluding css below doesn’t work for the paired mode. Although I didn’t check other modes but surely didn’t worked for excluding the css.
add_action( 'wp_enqueue_scripts', function() {
if ( function_exists( 'is_amp_endpoint' && is_amp_endpoint() ) ) {
wp_dequeue_style( 'css-style-id' );
}
}, 1000 );
Also please share the new code with the support of excluding multiple css. TIA
- This topic was modified 6 minutes ago by luckyankit.