• Resolved luxinterior

    (@luxinterior)


    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)
  • Plugin Support Kenneth Macharia

    (@kmacharia)

    Hi @luxinterior

    Thanks for reaching out and sorry for the trouble.

    WPForms assets are only loaded on pages that contain a form. Could you please check if you have enabled the option to load assets globally by heading over to WPForms > Settings > General as shown here.

    Thanks. 🙂

    Thread Starter luxinterior

    (@luxinterior)

    It was checked, but I don’t recall checking it. I’ve unchecked it now, and it works as expected.

    Thanks for your help.

    Lux

    Plugin Support Kenneth Macharia

    (@kmacharia)

    Hi @luxinterior

    I’m glad to hear that! This option is unchecked by default and thus it is likely that you might have accidentally enabled it during some troubleshoting.

    Have a good one. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Dequeue CSS and JS on Unused Pages’ is closed to new replies.