NextGEN Gallery
[resolved] nggSlideshow is not a function ( and register_sidebar) (2 posts)

  1. davydov-denis
    Posted 3 years ago #

    Dear All,

    I tried to add a widget sidebar to my theme and as soon as I register it in functions.php I get the following error:

    <script typejQuery("#ngg-slideshow-7-670-1").nggSlideshow is not a function

    even thou ngg.slideshow.min.js is loaded.

    Anyone knows any reasons this could happen?
    I don't know how do I debug that problem, just don't see the link.


  2. davydov-denis
    Posted 3 years ago #

    After playing more with Sidebars, the problem disappear, probably because I was not specifying sidebar's ids. With the following sidebar definition everything is fine:

    if ( function_exists('register_sidebar') )
    'id' => 'rightsidebar',
    'name' => 'Right Sidebar',
    'description' => __( 'A sidebar on the right of content.' ),
    'before_widget' => '<li id="%1$s" class="widget %2$s">',
    'after_widget' => '</li>',
    'before_title' => '<h2>',
    'after_title' => '</h2>',

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • NextGEN Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.