WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. davydov-denis
    Member
    Posted 2 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.

    http://wordpress.org/extend/plugins/nextgen-gallery/

  2. davydov-denis
    Member
    Posted 2 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') )
    register_sidebar(array(
    '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

About this Topic

Tags

No tags yet.