• I just went through Shadowbox-JS’s automated update process. Prior to the upgrade, I had things working smoothly. Following the upgrade, I have a problem.

    I am getting an error at the point where Shadowbox.init() fires in my header.php file saying that Shadowbox is undefined. I looked in the browser source, and the three wp_enqueue_script’s I had been using for Shadowbox were not showing up, though they were still in the header.php.

    <?php wp_enqueue_script("jquery"); ?>
    <?php wp_enqueue_script("shadowbox-jquery"); ?>
    <?php wp_enqueue_script("shadowbox"); ?>

    Any suggestions as to what is wrong and how to fix. I Am open to just slipping back to the previous version of Shadowbox if necessary (and if I can get a copy of the previous version.)

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You should not need to be enqueuing any scripts manually. If you had to do this before it is likely due to a broken theme. Make sure you header.php has <?php wp_head(); ?> and footer.php has <?php wp_footer(); ?>. See the default theme for usage and placement.

    Thread Starter brucend75

    (@brucend75)

    sivel,

    Thanks! You lead me down the right path.

    As you suspected, I was using a template that had some shadowbox code sprinkled in. When I removed all shadowbox related code from the header.php, everything went back to Go.

    Thanks again,
    Bruce

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Shadowbox JS] Problem since updating’ is closed to new replies.