Gallery name above gallery thumbnail display
Did you know you can get your gallery name to show on top of your gallery thumbnail view with a fairly small code edit? This is handy e.g. in cases where you have selected the gallery from an album containing several galleries.
What you need to do is to locate ‘gallery.php’ file within your WP installation plugin folder: ../wordpress/wp-content/plugins/nextcellent-gallery-nextgen-legacy/view/gallery.php. Make a copy of this file in case you want to revert back to the original NextCellent gallery thumbnail view.
Locate the following piece of code which is the second operational row of code:
<div class="ngg-galleryoverview" id="<?php echo $gallery->anchor ?>">
and insert after this row your title display code as follows (you may change the text into your own language and/or something more relevant to you):
<p><H3>GAllery: <?php echo $gallery->title ?></H3></p> <!-----------------show Gallery Title--------------------> <h3><a href="<?php the_permalink(); ?>" title="Back to Album">« Back to album: <?php the_title(); ?></a></h3> <!--a link back to the calling album/page-->
The first inserted code row will show the gallery title, the second a link back to the album (or other gallery selection) page. Delete the second row if you do not want to display the link back.
Save the file into its original location. Since these are hard-coded changes, make a copy from this edited file as any NextCellent upgrade will replace this file during the upgrade process – so always after upgrade copy this edited into your ../view folder.
I think it would be nice to have this as a standard option within the basic NextCellent. Hope it will happen soon.
- The topic ‘Gallery name above gallery thumbnail display’ is closed to new replies.