• Resolved marcorm69

    (@marcorm69)


    I all.

    The plugin loads on all pages of the site, for better performance, i want load only in page where I use it.

    I use the action wp_print_scripts and wp_print_style in functions.php, but i don’t found the “name” of plugin to use in deregister instruction:

    wp_deregister_style( ‘plugin_name’ );
    wp_deregister_script( ‘plugin_name’ );

    Can you help me?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor webnus

    (@webnus)

    Hello @marcorm69,

    Unfortunately, currently, this is not possible.
    I will forward your ticket to the developer team and they will process that. If it is possible they will add this feature in the next plugin updates.

    In fact, the “load_frontend_assets” load all assets and if you want to deregister the desired files, you should search them in whole MEC, and then find the tag to do that (e.g: mec-frontend-style).

    Anyway, the plugin name is “modern-events-calendar-lite”

    Best Regards

    Thread Starter marcorm69

    (@marcorm69)

    Thank

    Plugin Contributor webnus

    (@webnus)

    You’re welcome

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Enable stye and script only in some page’ is closed to new replies.