WP_enqueue_script help... Please? (1 post)

  1. JCKnoell
    Posted 2 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic