Move script to footer
-
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)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Move script to footer’ is closed to new replies.