How can I disable on a post type or specific page?
-
Is there a way to disable Image Lazy Load for specific pages or post types?
On the pages where I use WPBakery Visual Composer an extra <p> is placed around the image and messing up the formatting.In my custom-post-type-single.php I tried:
add_action( 'wp_print_scripts', 'my_deregister_function', 100 ); function my_deregister_function() { wp_deregister_script( 'image-lazy-load-unveil-ui' ); wp_deregister_style( 'image-lazy-load-frontend' );
But when I use this then nothing appears. I would like to completely block the plugin from running on these post types, and specific pages.
Thanks.
- The topic ‘How can I disable on a post type or specific page?’ is closed to new replies.