• I want to add gallery description to the top of gallery pages, above the thumbnails, which I was hoping to do by adding <?php echo $gallery->description ?> somewhere in a template.

    I’ve found plenty of help for doing this in older versions of NextGEN Gallery, when nextgen-gallery/view/gallery.php could be edited, but does anyone know which file replaces it in v2.0.40?

    https://www.ads-software.com/plugins/nextgen-gallery/

Viewing 7 replies - 1 through 7 (of 7 total)
  • @artinet, do you have a page for each gallery, or they open from the album page?

    Thread Starter Artisan Internet

    (@artinet)

    There’s a single album page with sub-albums on it – see https://www.artisan11.co.uk/gallery/ – all sub-albums and galleries are built within NextGEN Gallery.

    Thread Starter Artisan Internet

    (@artinet)

    Does anyone know which PHP template displays the gallery? I would like to add the gallery’s description above the slideshow link.

    Plugin Contributor photocrati

    (@photocrati)

    @artinet – in most cases you would be looking at making a copy of this template file so you could create a custom template: \products\photocrati_nextgen\modules\ngglegacy\view\gallery.php

    – Cais.

    Thread Starter Artisan Internet

    (@artinet)

    I added some code and re-uploaded gallery.php to the view menu, but it doesn’t appear that NextGEN is using the template, does it need to be uploaded to another folder?

    If you have done a template and you can see it in the page dropdown menu and you can select it, then the page use that template.
    Anyway, if you have done either the right steps or not, I think that that <?php echo $gallery->description ?> is no more working in the new versions of Nextgen, maybe a code a bit more accurate is needed.

    Thread Starter Artisan Internet

    (@artinet)

    The galleries are not individual pages. The main page, called Photo Gallery, is an actual Page with the NextGen code added using ‘Attach to Post’.

    The items on that page, 2013 Events, 2012 Events, etc. are sub-albums of Photo Gallery which were built in NextGEN.

    Each of those sub-albums is an album containing thumbnails and links to the galleries for the events for that year, also built in NextGEN.

    Everything was built in NextGEN so the only actual Page is the top level one called Photo Gallery.

    If there’s no way to make gallery.php work in v2.0.40, then I guess it’s back to the original question of which file replaces gallery.php in the latest version of NextGEN.

    Assuming there’s a file that I can add some code to, does anyone know the code that would make the gallery’s description appear above the [Show slideshow] link?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Add description to top of gallery page?’ is closed to new replies.