Support » Plugin: NextGen NivoSlider » Add gallery description underneith slider

  • Resolved Sprutt

    (@sprutt)


    Hello and thanks for a great plugin!

    I got my slider set up and running fine dislaying my galleries. Now I only need to figure out how to display the galleries description underneith the sliders. I have been looking around for a solution but haven’t found anything. I got a feeling it shouldn’t be extremely hard to do but its still beyond me…

    Does anyone know how I might achieve this?

    Thanks in advance, cheers/Dag

    http://wordpress.org/plugins/nextgen-nivoslider/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Sprutt

    (@sprutt)

    I figured out how to do it. If anyone might need this functionality, open up ngg-nivoslider-widget.php and add the following code at the end of the function named widget before the final echo call, and you’ll get the gallery title and description displayed below your slider.

    $galleryTitle = trim( $gallery->title );
    $galleryDescription = trim( $gallery->galdesc );
    
    $output .= '<h1>' . $galleryTitle . '</h1>';
    $output .= '<div class="proj-page-descr">' . $galleryDescription . '</div>';

    Plugin Author Aldert Vaandering

    (@paperfeed)

    In the new version (yet to be uploaded) I’ve added two new options. showGalleryTitle and showGalleryDesc.

    Thread Starter Sprutt

    (@sprutt)

    That’s great, thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add gallery description underneith slider’ is closed to new replies.