• Hi

    I’m using this code to display the slideshow in my not widget enabled sidebar.

    <?php
    if (function_exists("ngg-widget-slideshow"))
    {nggSlideshowWidget('6,140,180');}
    ?>

    Any ideas why it isn’t working please? The only thing I can come across is a constant reference to enable the widgets plugin which I haven’t because I can’t see how!

    Thanks

    Rich

Viewing 1 replies (of 1 total)
  • So are you asking how to enable widgets? Open your sidebar.php file and paste this in where you want the widget to appear:

    <?php if ( !function_exists('dynamic_sidebar')
            || !dynamic_sidebar() ) : ?>

    Then open your functions.php file, or if you don’t have one create a new file and name it that, and paste this in:

    <?php
    if ( function_exists('register_sidebar') )
        register_sidebar(array(
            'before_widget' => '',
        'after_widget' => '',
     'before_title' => '<h2>',
            'after_title' => '</h2>',
        ));
    ?>

    Your NextGen widget should now appear

Viewing 1 replies (of 1 total)
  • The topic ‘nextgen gallery displaying slideshow in sidebar’ is closed to new replies.