Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

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.

share|improve this answer
    
Ok, thanks a lot. –  ogni Feb 3 '12 at 12:16
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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