• Resolved Wolfgan

    (@wolfgan)


    Hi!
    I used the ARI Fancy Lightbox not PRO version in several projects. But I have one issue. By default a js script of this plugin setted at the head of html template. I’ve moved it to a footer via hardcoding. In the class-plugin.php into the private method “common_enqueue_scripts” I added a “true” parameter to the wp_register_script on the 114 line:
    wp_register_script( 'ari-fancybox', $options->assets_url . 'fancybox/jquery.fancybox.min.js', array( 'jquery' ), $options->version, true );

    Yes it works, but untill to a next update.

    OK. Is there any way to make this changes permanent?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author arisoft

    (@arisoft)

    Hello

    We will add the option (“Load scripts in footer”) to the next version of the plugin and will release it within several days.

    Plugin Author arisoft

    (@arisoft)

    v. 1.3.6 contains “Load scripts in footer” parameter on “ARI Fancy Lightbox -> Settings -> Advanced” page.

    Thread Starter Wolfgan

    (@wolfgan)

    Yes! Many thanks.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Move script to footer’ is closed to new replies.