• Hey guys,

    Can someone please check this page and give me an idea why I get this error: jQuery(“div#about-cycle-lite”).jj_ngg_shuffle is not a function

    I’m not a developer but really want to get this working. I have no idea what this means. Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Can someone please check this page

    Ah, where’s the URL?

    Thread Starter mattymar

    (@mattymar)

    Oops sorry, I’m an idiot!

    http://healthybodyrevolution.com/blog/

    Look at your source code: the link to that javascript is missing a closing >

    Thread Starter mattymar

    (@mattymar)

    I see this in my source code:

    <script type="text/javascript">jQuery('div#about-cycle-lite').jj_ngg_shuffle();jQuery('div#about-cycle-lite').jjcycle({timeout:4000,height:272});</script>

    Is there something wrong with that or is that not what you were talking about?

    Try noconflict mode for that script http://api.jquery.com/jQuery.noConflict/ and try deactivating Zero Clipboard.

    Thread Starter mattymar

    (@mattymar)

    It’s actually a plug-in that has the javascript and I’m using php to call all that. Where would I put the noconflict?

    This is from header.php:

    <?php echo do_shortcode('[jj-ngg-jquery-cycle html_id="about-cycle-lite" width="1000" height="272" order="random" timeout="7000" shuffle="true" timeout="4000" gallery="1"]'); ?>

    Thread Starter mattymar

    (@mattymar)

    Any chance the problem has to do with something in the plugin’s functions.php file?

    Here are two pieces that might be related to this problem:

    function WPJJNGGJ_CYCLE_enqueue_scripts()
    {
      if( !is_admin() )
      {
        wp_enqueue_script( 'jquery' );
        wp_enqueue_script( 'jquery-jjcucle', WPJJNGGJ_CYCLE_plugin_url( 'script/jquery.cycle.lite.1.0.min.js' ), array('jquery'), '', false );
        wp_enqueue_script( 'jquery-shuffle', WPJJNGGJ_CYCLE_plugin_url( 'script/jquery.jj_ngg_shuffle.js' ), array('jquery'), '', false );
      }
    }

    and

    function jj_ngg_jquery_cycle_shortcode_handler($atts)
    {
      $instance = array();
      foreach($atts as $att => $val)
      {
        $instance[wp_specialchars($att)] = wp_specialchars($val);
      }
Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Firebug says not a function’ is closed to new replies.