Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Exclude particular css from AMP in paired mode

$
0
0

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.

Viewing all articles
Browse latest Browse all 59525

Trending Articles