Support » Plugins » WP_enqueue_script help… Please?

  • So, we are running a child theme which is customized, using the Twenty Eleven theme as a parent. (heavily customized, btw)

    There is something in our header, as far as scripting goes, that is breaking my lightbox plugin and blocking its functionality. When I switch to a default theme, it works just fine, so it’s obviously something in my child theme.
    (click on the link at the top of the content – “HTML5 vs Flash”. It should open the pdf in lightbox, but doesn’t.)

    Having said that, I’m trying to use wp_enqueue_script to only call certain scripts on certain pages. For example, my slider (jquery.cycle.all.js) is being called in my header.php. How do I call that on only my home page? I have read all of the text I can find on using wp enqueue script, but none of them say WHERE to put this information. I understand how to build the script using the correct handles, but where do I put it and can I use it in each template to call separate scripts on each page?

    Anyway, as you can see, I’m very confused about this. Any help would be great. Thanks!

  • The topic ‘WP_enqueue_script help… Please?’ is closed to new replies.