Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7189861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:23:32+00:00 2026-05-28T19:23:32+00:00

I am adding the nivo slider jQuery plugin to a WordPress theme but I

  • 0

I am adding the nivo slider jQuery plugin to a WordPress theme but I can’t get the images to rotate. They all load but they don’t rotate. Here is the section of my header that applies to the slider:

    <?php wp_enqueue_script('jquery'); ?>
    <?php wp_head(); ?>
    <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/nivo-slider.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/default.css" type="text/css" media="screen" />
    <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery.nivo.slider.pack.js"></script>

<script type="text/javascript">
jQuery(window).load(function() {
    jQuery('#slider').nivoSlider();
});
</script>

And here is the div where the images are being displayed:

    <div id="slider" class="nivoSlider">
    <?php
    $slides = $data['pingu_slider']; //get the slides array

    foreach ($slides as $slide) {
        echo '<h1 class="image_title">' .$slide['title'].'</h1>';
        echo '<img src="'.$slide['url'].'" alt="test">';
        echo '<p class="nivo-caption">' .$slide['description'].'</p>';
    }

    ?>
</div>

The site where the slider is located is at http://sandbox.nspirelab.com/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T19:23:34+00:00Added an answer on May 28, 2026 at 7:23 pm

    On your page, you’re loading jQuery twice…. version 1.4 right after version 1.4.2.

    But one major issue is that you’re calling jQuery in your head but jQuery does not even exist yet until down in the body. You need to include jQuery before you include the plugins or call the code.

    Only include jQuery once, then include your plugin, and then call your function. This can be done in either the head or the body.

    <script src="jquery.min.js" type="text/javascript"></script>
    
    <script src="nivo.slider.pack.js" type="text/javascript"></script>
    
    <script type="text/javascript">
        jQuery(window).load(function() {
            jQuery('#slider').data('nivoSlider').start();
        });
    </script>
    

    And finally, since we’re talking about a WordPress theme, take a look at using enqueue to prevent the loading of jQuery multiple times.

    http://codex.wordpress.org/Function_Reference/wp_enqueue_script

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Adding Exceptional Handling is a good practise, but I have a doubt, In our
Adding the row one by one in the button click.. (i tried but its
Adding functionality to a class can be done by adding a method or by
Adding files to .hgignore will prevent them from being tracked. But we have some
Adding an image to a UINavigationItem's titleView is pretty trivial, but when I push
After adding log4j to my application I get the following output every time I
After adding ASIHTTPRequest to my project (which incidentally I've now removed) I get linking
Im adding facebook one-login to my website. Just wanted to get some feedback from
When adding JQuery to hide a class it of course waits for the page
Adding Multiple series to the ComboChart with different graph types is straightforward, but I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.