WordPress.org

Ready to get started?Download WordPress

Forums

Easy FancyBox
[resolved] disable easyfancybox on a specific page (2 posts)

  1. Mikage
    Member
    Posted 1 year ago #

    Hello,
    is it possible to disable the script on a specific page?

    For another fancybox plugin it is possible to do it by using remove_action in functions.php so i think maybe it should be possible for easy fancybox as well.

    thanks!

    http://wordpress.org/extend/plugins/easy-fancybox/

  2. RavanH
    Member
    Plugin Author

    Posted 1 year ago #

    Yes, you could use these:

    wp_deregister_script('jquery.mousewheel');
    wp_deregister_script('jquery.metadata');
    wp_deregister_script('jquery.fancybox');
    wp_dequeue_style('easy-fancybox.css');

    or if you want to use remove_action, these might work:

    remove_action('wp_print_styles', 'easy_fancybox_enqueue_styles');
    remove_action('wp_enqueue_scripts', 'easy_fancybox_enqueue_scripts');
    remove_action('wp_head', 'easy_fancybox');
    remove_action('plugins_loaded','easy_fancybox_textdomain');
    remove_action('init','easy_fancybox_init');

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.