WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: NextGEN Gallery] Gallery title over each Gallery? (4 posts)

  1. bmilliot
    Member
    Posted 4 years ago #

    Been searching for a solution but can't find one.
    I have several galleries in one page, and want each to display the title from the admin gallery title input.

    Is there a way to do this without hacking the code?

    Or do I have to add some php to a template file?

    Thanks!

  2. Alex
    Member
    Posted 4 years ago #

    I need this too and I would like to display description as well. Please help.

  3. Alex
    Member
    Posted 4 years ago #

    Plugins -> NextGen-Gallery ->View ->gallery.php replace

    <?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?><?php if (!empty ($gallery)) : ?>
    
    <div class="ngg-galleryoverview" id="<?php echo $gallery->anchor ?>">
    
    <?php if ($gallery->show_slideshow) { ?>

    with

    <?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?><?php if (!empty ($gallery)) : ?>
    
    <div class="ngg-galleryoverview" id="<?php echo $gallery->anchor ?>">
    <p><?php echo $gallery->title ?></p>
    <p><?php echo $gallery->description ?></p>
    
    <?php if ($gallery->show_slideshow) { ?>
  4. bmilliot
    Member
    Posted 4 years ago #

    Yes, perfect.

    Thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.