Adding album and gallery titles to NextGen Gallery in WordPress

I use NextGen Gallery for WordPress often, I think it’s a fairly solid solution with a few quirks that I can work around.

Today I’m working on a multilevel gallery for a local architect. I have a number of galleries within each album, and I wanted to show the album name and gallery name for each of them to help the visitor keep track of where they are in the stack.

To do this, go into /wp-content/plugins/nextgen-gallery/view/ and open gallery.php.

Add this line to the very top of the page:

Then, scroll down to about line 72 and just before the thumbnails section comment, add this:

This will give you a nice-looking, dynamic headline like:

Album Name: Gallery Name


  1. Just in case anybody else runs across this, I struggled with getting the same thing to happen with the album-extend.php file. I’m new to php, so it may seem simple, but I got it to work by skipping the first line since it looks like $album is already called in this file. I only needed to put the second line in after . Hope this saves somebody time.

  2. Yeah, so I’m new at posting code like this in forums too. I put it after div class=”ngg-albumoverview” tag.

  3. Hi! thanks for your tip, works great. I have a question and I’m wondering if you can help me with that. I’m trying to implement this in my wordpress site with nextgen gallery. I need to use 3 different icons for 3 different ngg TAGS. I really don’t know how to do it, I’ve been trying but it doesn’t work. I really don’t know php or codex. Thanks for any help.

  4. What would all of us do without the magnificent concepts you share on this blog? Who else has the perseverance to deal with important topics just for common subscribers like me? I actually and my friends are very delighted to have your site among the kinds we usually visit. We hope you know how significantly we get pleasure from your work! Best wishes coming from us all.

  5. Not off the top of my head, sorry. I haven’t had a NextGen gallery with albums in a while so haven’t come back to this lately.

  6. Invaluble tip, thank you. I combined it with something I read about how to determine whether we’re looking at an album or gallery. This will check if we are on a gallery level and insert the titles:

    if (!empty ($gallery)){
    name?>: title?>

  7. My markup didn’t work in my last post, but basically, the $gallery variable seems available for us to check if we’re on a gallery level.

Leave a Reply

Your email address will not be published. Required fields are marked *