Dequeue CSS and JS on Unused Pages
-
I only use WPForms on 2 pages and would like to disable it’s loading on the rest of the site.
I’ve disabled it’s loading using the ‘option_active_plugins’ filter, and it appears not to be loading, but the associated CSS and JS still seems to load.
I’ve tried wp_dequeue_style and wp_dequeue_script, which seems to work fine on other plugins, but for WPForms, nothing seems to work.
Can you tell me how I can completely disable WPForms and NOT load the CSS and JS, on pages that it’s not used?
Thanks for your help.
Lux
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Dequeue CSS and JS on Unused Pages’ is closed to new replies.