Disable enqueued plugins (JS, CSS)

Visual Portfolio loads a small set of vendor libraries, each behind its own filter. Return false from the filter to stop the plugin enqueueing that library, for example when your theme already ships it.

add_filter( 'vpf_enqueue_plugin_isotope', '__return_false' );
FilterLibraryUsed by
vpf_enqueue_plugin_isotopeIsotopeTiles, Masonry, Grid, filtering
vpf_enqueue_plugin_flickr_justified_galleryflickr-justified-galleryJustified
vpf_enqueue_plugin_swiperSwiperSlider
vpf_enqueue_plugin_photoswipePhotoSwipe 4Lightbox
vpf_enqueue_plugin_fancyboxFancybox 3Lightbox
vpf_enqueue_plugin_simplebarSimpleBarCustom scrollbars
vpf_enqueue_plugin_lazysizeslazysizesLazy loading

Disabling a library breaks the features that use it unless you provide the library yourself. Elementor sites already load Elementor’s own Swiper.

Was this page helpful?