0

the Easy FancyBox WP-Plugin works fine for me.

Just the script will be placed in the header of my source, like other plugin, too. I´d like to push it down to the footer of my website (incl. the inline-script) below jquery-library.

Can i fixed it?

Thanks Ingo

1

You can ask the plugin author to update the plugin so scripts go in the footer rather than the header.

Or you can look in the plugin code and see this:

wp_enqueue_script('jquery.fancybox', plugins_url(FANCYBOX_SUBDIR.'/fancybox/jquery.fancybox-'.FANCYBOX_VERSION.'.pack.js', __FILE__), array('jquery'), FANCYBOX_VERSION);

What you can do is edit this yourself so that it enqueues in the footer or you can write a function in your theme functions file that un-queues it and then re-queues it correctly.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.